Created
April 13, 2018 14:10
-
-
Save todorok1/43cdffa89beaf0ba9af98d49cc6e2c10 to your computer and use it in GitHub Desktop.
Unityチュートリアル・ボールの飛距離とハイスコアをゲーム画面に表示するスクリプト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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