Exemple #1
0
 public void ShowModesPage(bool y)
 {
     if (y)
     {
         PlayScreen.SetActive(false);
         InfoButton.SetActive(false);
         TextMeshHome.SetActive(false);
         LeaderButton.SetActive(false);
         SettingsButton.SetActive(false);
         AccountBtnIcon.SetActive(false);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         BackToHomeButton.SetActive(true);
         ModesPage.SetActive(true);
     }
     else
     {
         BackToHomeButton.SetActive(false);
         ModesPage.SetActive(false);
         PlayScreen.SetActive(true);
         InfoButton.SetActive(true);
         TextMeshHome.SetActive(true);
         LeaderButton.SetActive(true);
         SettingsButton.SetActive(true);
         AccountBtnIcon.SetActive(true);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
     }
 }
Exemple #2
0
 public void InfoPage(bool y)
 {
     if (y)
     {
         PlayScreen.SetActive(false);
         InfoButton.SetActive(false);
         ShopButton.SetActive(false);
         BtnAvatar.SetActive(false);
         BackToHomeButton.SetActive(true);
         InfoPanel.SetActive(true);
         TextMeshHome.SetActive(false);
     }
     else
     {
         PlayScreen.SetActive(true);
         InfoButton.SetActive(true);
         ShopButton.SetActive(true);
         BtnAvatar.SetActive(true);
         BackToHomeButton.SetActive(false);
         InfoPanel.SetActive(false);
         TextMeshHome.SetActive(true);
     }
 }