public void SetScreenForPreRound() { ResetUI(); // Make sure UI is back to default for next play UIManager.PlayerHealthUI.gameObject.SetActive(false); ToggleCurrentHud(false); panelRight.gameObject.SetActive(false); rightClickManager.SetActive(false); jobSelectWindow.SetActive(false); teamSelectionWindow.SetActive(false); preRoundWindow.gameObject.SetActive(true); preRoundWindow.SetUIForCountdown(); ServerInfoMessageClient.Send(ServerData.UserID); }
/// <summary> /// Opens all menu panels (Menu and disclaimer) /// </summary> public void OpenMenuPanel() { SoundManager.Play(SingletonSOSounds.Instance.Click01); Logger.Log($"Opening {menuWindow.name} menu", Category.UI); menuWindow.SetActive(true); if (UIManager.Display.disclaimer != null) { UIManager.Display.disclaimer.SetActive(true); } if (!sentData) { sentData = true; ServerInfoMessageClient.Send(ServerData.UserID); } serverInfo.SetActive(false); if (string.IsNullOrEmpty(GetComponent <ServerInfoUI>().ServerDesc.text)) { return; } serverInfo.SetActive(true); }