protected override void Draw(GameTime gameTime) { UiSystem.DrawEarly(gameTime, _spriteBatch); titleUi.DrawEarly(gameTime, _spriteBatch); GraphicsDevice.Clear(Color.Transparent); UiSystem.Draw(gameTime, _spriteBatch); titleUi.Draw(gameTime, _spriteBatch); base.Draw(gameTime); }
protected override void Draw(GameTime gameTime) { UiSystem.DrawEarly(gameTime, _spriteBatch); GraphicsDevice.Clear(Color.Transparent); _spriteBatch.Begin(); background.Draw(_spriteBatch, GraphicsDevice); Communicator.newPlayerMutex.WaitOne(); foreach (Sprite sprite in sprites) { sprite.Draw(_spriteBatch, GraphicsDevice); } Communicator.newPlayerMutex.ReleaseMutex(); _spriteBatch.End(); UiSystem.Draw(gameTime, _spriteBatch); base.Draw(gameTime); }