Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public void UpdateLeaderBoard()
 {
     highScoreText.highScoreText.text = "";
     highScoreText.LeaderBoard();
 }