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); } }
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); } }