void Start() { sScore = GameObject.Find("GodObject").GetComponent<StayingScores>(); theScore = sScore.setScore; userName = sScore.changeName; score.text = "Your score is: " + theScore; Highscores.AddNewHighscore(userName, theScore); }
void Awake() { scoreClass = GameObject.Find("GameHandler").GetComponent<TheScore>(); sScore = GameObject.Find("GodObject").GetComponent<StayingScores>(); player = GameObject.Find("Player").GetComponent<PlayerController>(); }
void Start() { sScore = GameObject.Find("GodObject").GetComponent<StayingScores>(); name = sScore.changeName; displayName.text = "" + name; }
void Awake() { sScore = GameObject.Find("GodObject").GetComponent<StayingScores>(); }