/* * @brief ゲームポーズ終了 */ void OnEndGamePause() { Hashtable data = new Hashtable(); data.Add("flg", false); NotificationCenter.DefaultCenter.PostNotification(this, "OnPuase", data); GamePauseGUI gui = GetComponent <GamePauseGUI>() as GamePauseGUI; if (gui) { gui.enabled = false; } }
/* * @brief ゲームポーズ開始 */ void OnStartGamePause() { // ポーズ実行 Hashtable data = new Hashtable(); data.Add("flg", true); NotificationCenter.DefaultCenter.PostNotification(this, "OnPuase", data); GamePauseGUI gui = GetComponent <GamePauseGUI>() as GamePauseGUI; if (gui) { gui.enabled = true; } }