public void Draw(SpriteBatch spriteBatch)
 {
     _currentScene.Draw(spriteBatch, ViewportAdapter);
     spriteBatch.Begin();
     spriteBatch.Draw(_transitionImage.TextureRegion.Texture, new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height), Color.White * _transitionImage.Alpha);
     spriteBatch.End();
     _currentScene.DrawDebugValue(spriteBatch);
 }
Ejemplo n.º 2
0
        public void UpdateAndDraw()
        {
            currentScene.Draw();
            var nextScene = currentScene.Update();

            if (nextScene == null)
            {
                DxSystem.Exit();
            }

            currentScene = nextScene;
        }