Guest User

Untitled

a guest
Apr 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void Start(){
  2. initPosition = gameObject.transform.position;
  3. rb = gameObject.GetComponent<Rigidbody>();
  4. distanceText = distanceTextObject.GetComponent<Text>();
  5. highScoreText = highScoreTextObject.GetComponent<Text>();
  6.  
  7. // DistanceTextとHighScoreTextの初期値をセット
  8. SetDistanceText(0f);
  9. SetHighScoreText(0f);
  10. }
Add Comment
Please, Sign In to add comment