コード例 #1
0
 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;
 }
コード例 #2
0
 private void InGameEvents_OnGameStart()
 {
     MainMenuController.GetComponentInChildren <Canvas>().enabled  = false;
     FadeSceneController.GetComponentInChildren <Canvas>().enabled = false;
     InGameUIController.GetComponentInChildren <Canvas>().enabled  = true;
 }