private void InGameEvents_OnMainMenuButtonPressed() { MainMenuController.GetComponentInChildren <Canvas>().enabled = true; FadeSceneController.GetComponentInChildren <Canvas>().enabled = false; InGameUIController.GetComponentInChildren <Canvas>().enabled = false; AudioManager.Instance.Stop(MyAudioType.InGame_Level1, fade: true); AudioManager.Instance.Play(MyAudioType.Main_Menu1, fade: true, delay: 0.5f); InputManager.Instance.IsInGame = false; }
private void InGameEvents_OnGameStart() { MainMenuController.GetComponentInChildren <Canvas>().enabled = false; FadeSceneController.GetComponentInChildren <Canvas>().enabled = false; InGameUIController.GetComponentInChildren <Canvas>().enabled = true; }