Exemple #1
0
    public void Execute()
    {
        switch (this.selected)
        {
        case 0:
            // ゲーム開始
            MainGameManager.GameStart();
            SoundManager.StopBGM();
            break;

        case 1:
            // 何も実行しない
            break;

        case 2:
            // ゲーム終了
#if UNITY_EDITOR
            UnityEditor.EditorApplication.isPaused = true;
#endif
#if UNITY_STANDALONE
            Application.Quit();
#endif
            break;
        }
    }