Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void StopFlying(){
- // 運動の停止
- rb.velocity = Vector3.zero;
- rb.angularVelocity = Vector3.zero;
- // 初期位置に移動させる
- gameObject.transform.position = initPosition;
- // 距離測定中フラグをFalseにセット
- isCheckingDistance = false;
- // 現在の距離をリセット
- SetDistanceText(0f);
- }
Add Comment
Please, Sign In to add comment