Beispiel #1
0
 public void OnLeaderButtonTapped()
 {
     LeaderPanel.SetActive(true);
     LeaderBoardButton.enabled = false;
     GOparent.SetActive(false);
     GetHighScore();
     ShowHighScore();
 }
 /**
  * Initializes panel
  */
 override public void Start()
 {
     if (leaderPanel == null)
     {
         DontDestroyOnLoad(gameObject);
         leaderPanel = this;
     }
     else if (leaderPanel != this)
     {
         Destroy(gameObject);
     }
     buttons = RetrieveButtonList("Buttons");
     GeneratePanel();
 }
Beispiel #3
0
 public void OnBackButtonTapped()
 {
     LeaderPanel.SetActive(false);
     LeaderBoardButton.enabled = true;
     GOparent.SetActive(true);
 }