Exemplo n.º 1
0
    /**
     * ゲームシーンイベントアクション
     */
    public void Action(GameActionEvent.EventType eventType)
    {
        switch (eventType)
        {
        case GameActionEvent.EventType.TitleSceneEnd:
        {
            SceneManager.LoadScene("Scene2");
            break;
        }

        case GameActionEvent.EventType.SearchModeSceneEnd:
        {
            SceneManager.LoadScene("Scene3");
            break;
        }

        case GameActionEvent.EventType.ChaserModeSceneEnd:
        {
            SceneManager.LoadScene(++gameCount >= config.Count ? "Scene4" : "Scene2");
            break;
        }

        case GameActionEvent.EventType.GameEnd:
        {
            SceneManager.LoadScene("Scene0");
            break;
        }

        default:
        {
            gameActionEvent.Invoke(eventType);
            break;
        }
        }
    }
Exemplo n.º 2
0
    private void ListenGameAction(GameActionEvent.EventType eventType)
    {
        Debug.Log(eventType);

        switch (eventType)
        {
        case GameActionEvent.EventType.ChaserModeCountStart:
            isMove = true;
            return;

        case GameActionEvent.EventType.ChaserModeCountEnd:
            isMove = false;
            return;

        default:
            return;
        }
    }