Exemple #1
0
 public override void OnSelect()
 {
     if (ControllerManager.Get().AvailabeJoystickCount >= 1)
     {
         GamestateManager.Get().ChangeState(GamestateType.TrainingSettings);
     }
 }
Exemple #2
0
    /// <summary>
    /// Called if both players ended the level.
    /// </summary>
    static void LevelEnded()
    {
        Debug.Log("Level ended by both players!");

        Unload();

        GamestateManager.Get().ChangeState(GamestateType.MainMenu);
    }
Exemple #3
0
    public override void OnSelect()
    {
        SettingsManager.LevelSettings levelSettings = SettingsManager.Get().CurrentLevelSetings;

        levelSettings.PreferedLayer [0] = LevelLayer;
        levelSettings.PreferedLayer [1] = LevelLayer;

        SettingsManager.Get().ApplyLevelSettings(levelSettings);

        GamestateManager.Get().ChangeState(GamestateType.Training);
    }
Exemple #4
0
    public override void OnSelect()
    {
        if (ControllerManager.Get().AvailabeJoystickCount >= 2)
        {
            SettingsManager.LevelSettings levelSettings = SettingsManager.Get().CurrentLevelSetings;
            // use random chars in mp
            levelSettings.PreferedLayer [0] = -1;
            levelSettings.PreferedLayer [1] = -1;

            SettingsManager.Get().ApplyLevelSettings(levelSettings);

            GamestateManager.Get().ChangeState(GamestateType.Multiplayer);
        }
    }
Exemple #5
0
 public override void OnSelect()
 {
     GamestateManager.Get().ChangeState(GamestateType.Exit);
     Application.Quit();
 }
Exemple #6
0
 public override void OnSelect()
 {
     GamestateManager.Get().ChangeState(GamestateType.MainMenu);
 }