Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 public void ShowMultiPanel(bool y)
 {
     if (y)
     {
         BackToHomeButton.SetActive(false);
         ModesPage.SetActive(false);
         MultiPanel.SetActive(true);
         BackButton2.SetActive(true);
     }
     else
     {
         MultiPanel.SetActive(false);
         BackButton2.SetActive(false);
         BackToHomeButton.SetActive(true);
         ModesPage.SetActive(true);
     }
 }
Ejemplo n.º 3
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);
     }
 }
 public MainPage ClickBackToHomeButton()
 {
     BackToHomeButton.Click();
     return(new MainPage(SessionManager.getDriver()));
 }