public void Shopview(bool t) { if (t) { InfoButton.SetActive(false); SettingsButton.SetActive(false); PlayScreen.SetActive(false); AccountBtnIcon.SetActive(false); ShopButton.SetActive(false); BtnAvatar.SetActive(false); LeaderButton.SetActive(false); ShopPanel.SetActive(true); LeaderButton.SetActive(false); Camera.GetComponent <CameraController>().enabled = false; } else { ShopPanel.SetActive(false); InfoButton.SetActive(true); SettingsButton.SetActive(true); PlayScreen.SetActive(true); ShopButton.SetActive(true); BtnAvatar.SetActive(true); LeaderButton.SetActive(true); AccountBtnIcon.SetActive(true); Camera.GetComponent <CameraController>().enabled = true; } }
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); } }