Esempio n. 1
0
    // Input?
    public void LoadLevel(int levelIndex)
    {
        p1Checkpoint    = new CheckpointData();
        p1Checkpoint.id = -1;
        p2Checkpoint    = new CheckpointData();
        p2Checkpoint.id = -1;

        StartCoroutine(TransitionController._GetInstance().Transition(levelIndex));
        currentLevelIndex = levelIndex;
    }
Esempio n. 2
0
    // Input?
    public void EndLevel()
    {
        //For now, return to main menu
        currentLevelIndex++;
        StartCoroutine(TransitionController._GetInstance().Transition(currentLevelIndex));

        p1Checkpoint    = new CheckpointData();
        p1Checkpoint.id = -1;
        p2Checkpoint    = new CheckpointData();
        p2Checkpoint.id = -1;
    }