コード例 #1
0
    public void GotoNextGame(MiniGamesList list)
    {
        MiniGameDetails d = list.GetNext();

        if (d != null)
        {
            MiniGamesList.CurrentGame = d;
            Debug.Log("LOADING SCENE: " + d.SceneName);
            SceneManager.LoadScene(d.SceneName);
        }
    }
コード例 #2
0
    void CheckRunContinue() {
        Debug.Log("CHECKING RUN");
        if (_lives == 0) {
            EndRunLose();
            return;
        }

        MiniGameDetails d = miniGameList.GetNext();
        if (d != null) {
            MiniGamesList.CurrentGame = d;
            Debug.Log("LOADING SCENE: " + d.SceneName);
            EventManager.TriggerEvent("Start Exit");
            EventManager.TriggerEvent("Transition To");
        } else {
            EndRunWin();
        }
    }