void ActivatePanel(string panelName) { if (string.IsNullOrEmpty(panelName)) return; HomePanel.SetActive(string.Equals(HomePanel.name, panelName)); ProfilePanel.SetActive(string.Equals(ProfilePanel.name, panelName)); }
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); }
private void ProfilePanelOnBack() { _profilePanel.SetActive(false); _menuPanel.SetActive(true); }