Example #1
0
 public override void Draw()
 {
     base.Draw();
     if (CurrentState == _pausestate)
     {
         _gs.Draw(SpriteBatch);
     }
 }
Example #2
0
        public void Run()
        {
            while (window.IsOpen && gameStateAtual != null)
            {
                while (gameStateAtual.Works())
                {
                    window.DispatchEvents();
                    gameStateAtual.Update();
                    gameStateAtual.Draw();
                }

                Framework.TextureManager.liberar();
                gameStateAtual = gameStateAtual.QualTrocar();
            }
        }