public void EndGame(MenuManager.MenuType menuType) { fakeGame.SetActive(true); Destroy(game); menuManager.ShowMenu(menuType); }
private void OnFadeCompleted(MenuManager.MenuType menu, MenuManager.FadeType fade) { if (fade == MenuManager.FadeType.FadeOut) { if (m_isStartingGame) { m_isStartingGame = false; FocusAndSelectAllInInputField(); m_timer.StartTimer(); } else if (m_isStartingTutorial) { m_isStartingTutorial = false; m_menuManager.FadeInMenu(MenuManager.MenuType.Tutorial); } else if (m_isExitingToStartMenu) { m_isExitingToStartMenu = false; m_menuManager.FadeInMenu(MenuManager.MenuType.Start); } } }
public void ShowMenu(MenuManager.MenuType menu) { MenuManager.ShowMenu(menu); }