public override void Draw() { base.Draw(); if (CurrentState == _pausestate) { _gs.Draw(SpriteBatch); } }
public void Run() { while (window.IsOpen && gameStateAtual != null) { while (gameStateAtual.Works()) { window.DispatchEvents(); gameStateAtual.Update(); gameStateAtual.Draw(); } Framework.TextureManager.liberar(); gameStateAtual = gameStateAtual.QualTrocar(); } }