/// <inheritdoc /> /// <summary> /// This is called when the game should draw itself. /// </summary> protected override void Draw(GameTime gameTime) { if (!IsReadyToUpdate) { return; } for (var i = ScheduledRenderTargetDraws.Count - 1; i >= 0; i--) { ScheduledRenderTargetDraws[i]?.Invoke(); ScheduledRenderTargetDraws.Remove(ScheduledRenderTargetDraws[i]); } base.Draw(gameTime); // Draw dialogs DialogManager.Draw(gameTime); NotificationManager.Draw(gameTime); // Draw the global container last. GlobalUserInterface.Draw(gameTime); Transitioner.Draw(gameTime); }
/// <inheritdoc /> /// <summary> /// This is called when the game should draw itself. /// </summary> protected override void Draw(GameTime gameTime) { if (!IsReadyToUpdate) { return; } base.Draw(gameTime); // Draw dialogs DialogManager.Draw(gameTime); NotificationManager.Draw(gameTime); // Draw the global container last. GlobalUserInterface.Draw(gameTime); Transitioner.Draw(gameTime); }