Created
April 13, 2018 10:06
-
-
Save todorok1/10a600705e20895af18e882c4523bbb7 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 Start(){ | |
initPosition = gameObject.transform.position; | |
rb = gameObject.GetComponent<Rigidbody>(); | |
distanceText = distanceTextObject.GetComponent<Text>(); | |
// DistanceTextの初期値をセット | |
SetDistanceText(0f); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment