public void Update(GameTime gameTime) { // If the current scene is finished, we switch to the next one if (_currentScene.IsSceneFinished()) { if (_currentScene.GetNextScene() == null) _game.Exit(); else _currentScene = _currentScene.GetNextScene(); } _currentScene.Update(gameTime, _gameInput); }
public SceneManager(Squick game, KinectInterface gameInput) { _game = game; _gameInput = gameInput; ScoreHolder.Level1 = 10000; ScoreHolder.Level2 = 12000; //_currentScene = new Level1(gameInput); // Change with your level //_currentScene = new DebugMenu(); // For testing purpose //_currentScene = new VictoryMenu(); // For testing purpose _currentScene = new MainMenu(); }
public Scene() { this._sceneFinished = false; this._nextScene = null; }