Beispiel #1
0
 void Awake()
 {
     groundScript  = GameObject.Find("GroundTriggerCollider").GetComponent <GroundScript> ();
     highScoreText = GameObject.Find("highScoreText").GetComponent <LeaderBoardScript> ();
     // PreLoad PlayerPrefs to cut down loadtime when checking the HighScore.
     highScoreText.LeaderBoard();
 }
Beispiel #2
0
 public void UpdateLeaderBoard()
 {
     highScoreText.highScoreText.text = "";
     highScoreText.LeaderBoard();
 }