Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created May 1, 2018 12:55
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/0b344194abe17154e5d3f08e2b2d322e to your computer and use it in GitHub Desktop.
Save todorok1/0b344194abe17154e5d3f08e2b2d322e to your computer and use it in GitHub Desktop.
Unityチュートリアル・ゴルフゲームの進行を制御するスクリプト
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