Last active
April 13, 2018 14:11
-
-
Save todorok1/36996aae9ce1d7b1087dbd429d6e7a33 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 StopFlying(){ | |
// 運動の停止 | |
rb.velocity = Vector3.zero; | |
rb.angularVelocity = Vector3.zero; | |
// 初期位置に移動させる | |
gameObject.transform.position = initPosition; | |
// 距離測定中フラグをFalseにセット | |
isCheckingDistance = false; | |
// 現在の距離をリセット | |
SetDistanceText(0f); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment