public override void OnSelect() { if (ControllerManager.Get().AvailabeJoystickCount >= 1) { GamestateManager.Get().ChangeState(GamestateType.TrainingSettings); } }
/// <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); }
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); }
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); } }
public override void OnSelect() { GamestateManager.Get().ChangeState(GamestateType.Exit); Application.Quit(); }
public override void OnSelect() { GamestateManager.Get().ChangeState(GamestateType.MainMenu); }