Пример #1
0
    /*
     *  @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;
        }
    }
Пример #2
0
    /*
     *  @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;
        }
    }