Created
May 1, 2018 12:55
-
-
Save todorok1/0b344194abe17154e5d3f08e2b2d322e 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 = prePosition; | |
// ボール停止後の処理を呼ぶ | |
ReadyToBoost(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment