/// <summary> /// Frame Renewal /// </summary> /// <param name="gameTime">Snapshot of Timing Values</param> /// <param name="otherScreenHasFocus">!Game.IsActive</param> /// <param name="coveredByOtherScreen"></param> public override void Update(Microsoft.Xna.Framework.GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen) { base.Update(gameTime, otherScreenHasFocus, coveredByOtherScreen); // Don't update level if in transit. if (!this.IsTransitioning && this.ScreenState == Services.ScreenState.Active && !_pause.IsActive && !otherScreenHasFocus) { _level.Update(gameTime); } }
private void CommonUpdate(float dt) { // Update level(s) m_level.Update(dt); UpdatePlacementsLeft(); // Update script if (m_scriptController != null) { m_scriptController.Update(dt); } // Update effects UpdateTimeEffects(dt); }
protected override void OnUpdate(float dt) { m_level.Update(dt); }