Пример #1
0
    public static void LoadCheckpoint()
    {
        // Clear all changes made after checkpioint
        TempLevelStates.Clear();

        // Move to scene where checkpoint was made and re-store its state
        // Restoration happens automatically in Start() of GameLevel
        LevelsManager.LoadedByCheckpoint = true;
        LevelsManager.LoadLevel(_checkpointLevel);
    }
Пример #2
0
    public void RepeatLevel()
    {
        SetFinishedMenuDisabled();

        levelsManager.LoadLevel(levelsManager.currentLevel);
    }
Пример #3
0
 public void LoadLevel()
 {
     levelsManager.LoadLevel(levelIndex);//LevelsManager can be turned into a singleton
 }