public void ClosePauseMenu() { gameObject.SetActive(false); UiEventManager.ShowHud(); SoundManager.PlayEvent(AKID.EVENTS.MENU_RESUME, gameObject); Time.timeScale = 1; }
private void OpenPauseMenu() { gameObject.SetActive(true); UiEventManager.HideHud(); SoundManager.PlayEvent(AKID.EVENTS.MENU_PAUSE, gameObject); Time.timeScale = 0; }
private void Form1_Load(object sender, EventArgs e) { eventManager = new UiEventManager(dataGridView1, this); indication = new Indication(this); InitializeAppProperties(); try { client = new ClientLauncher(eventManager, this); client.Launch(); eventManager.client = client; StatusesForOwner.Init(client.GetServerInstance()); eventManager.GetEventList(); eventManager.HideClosedEventsAccordingToConfigValue(); } catch (UserIsNullException) //user has not logged in { ExitApp(); } }
/// <summary> /// Displays the win screen when the game is completed, and hides the HUD. /// </summary> private void ShowWinScreen() { gameObject.SetActive(true); UiEventManager.HideHud(); }