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); } }
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(); } }