예제 #1
0
 public void ReturnToCallerScene()
 {
     if (_Scenes.Count != 0)
     {
         _NextScene = _Scenes.Pop();
     }
 }
예제 #2
0
 public void UpdateCurrentScene(GameTime gameTime)
 {
     if (_NextScene != null && _NextScene != _CurrentScene)
         _CurrentScene = _NextScene;
     if (_CurrentScene != null)
         _CurrentScene.Update(gameTime);
 }
예제 #3
0
 public void Call(Scene newScene)
 {
     if (_CurrentScene != null)
     {
         _Scenes.Push(_CurrentScene);
         _NextScene = newScene;
     }
     else
         _NextScene = newScene;
 }