Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 13, 2018 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/43cdffa89beaf0ba9af98d49cc6e2c10 to your computer and use it in GitHub Desktop.
Save todorok1/43cdffa89beaf0ba9af98d49cc6e2c10 to your computer and use it in GitHub Desktop.
Unityチュートリアル・ボールの飛距離とハイスコアをゲーム画面に表示するスクリプト。
void SetHighScoreText(float distance){
// 受け取ったハイスコアの値を使って画面に表示するテキストをセット
highScoreText.text = highScorePrefix + distance.ToString("F2") + highScoreSuffix;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment