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