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; } }
private void Awake() { Instance = this; PausePanel.SetActive(false); ShopPanel.SetActive(false); _gameSpeed = 1; _statHolders = new List <GameObject> { StatHolderTransform.GetChild(0).gameObject, StatHolderTransform.GetChild(1).gameObject, StatHolderTransform.GetChild(2).gameObject }; }
public void DisableAllPanels() { LoadingPanel.SetActive(false); AccountPanel.SetActive(false); ProcessPanel.SetActive(false); LobbyPanel.SetActive(false); CharacterSelectPanel.SetActive(false); ProfilePanel.SetActive(false); ShopPanel.SetActive(false); FriendsPanel.SetActive(false); GameModePanel.SetActive(false); SettingsPanel.SetActive(false); AboutPanel.SetActive(false); WaitingPanel.SetActive(false); }
public void ShopCall() { _audio.clip = itemOpenSound; _audio.Play(); if (ShopPanel.activeSelf) { //Time.timeScale = 1; //environment.SW.Start(); ShopPanel.SetActive(false); } else { //Time.timeScale = 0; //environment.SW.Stop(); ShopPanel.SetActive(true); } }
public void OnPointerClick(PointerEventData eventData) { Time.timeScale = 0f; ShopPanel.SetActive(true); }
public void CloseClick() { Time.timeScale = 1f; ShopPanel.SetActive(false); }
/// <summary> /// Opens up shop ui /// </summary> public void ShopActive() { ShopPanel.SetActive(!ShopPanel.activeInHierarchy); }
public void Shop() { ShopPanel.SetActive(true); this.gameObject.SetActive(false); }
public void ShowShop() { ButtonsPanel.SetActive(false); ShopPanel.SetActive(true); }