Skip to content

Instantly share code, notes, and snippets.

Last active April 13, 2018 14:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
void Start(){
initPosition = gameObject.transform.position;
rb = gameObject.GetComponent<Rigidbody>();
distanceText = distanceTextObject.GetComponent<Text>();
highScoreText = highScoreTextObject.GetComponent<Text>();
// DistanceTextとHighScoreTextの初期値をセット
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment