Guest User

Untitled

a guest
Apr 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void StopFlying(){
  2. // 運動の停止
  3. rb.velocity = Vector3.zero;
  4. rb.angularVelocity = Vector3.zero;
  5.  
  6. // 初期位置に移動させる
  7. gameObject.transform.position = initPosition;
  8.  
  9. // 距離測定中フラグをFalseにセット
  10. isCheckingDistance = false;
  11.  
  12. // 現在の距離をリセット
  13. SetDistanceText(0f);
  14. }
Add Comment
Please, Sign In to add comment