Ejemplo n.º 1
0
        public override void Draw(GameTime gameTime)
        {
            spriteBatch.Begin();
            _gui.Draw(gameTime, spriteBatch);
            spriteBatch.End();

            base.Draw(gameTime);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Draw all visible entities and the gui (after entities)
        /// </summary>
        /// <param name="gameTime"></param>
        /// <param name="spriteBatch"></param>
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            base.Draw(gameTime, spriteBatch);

            if (!_useOtherBatchForGui)
            {
                _guiManager.Draw(gameTime, spriteBatch);
            }
        }