public override void Update(GameTime time) { base.Update(time); ecoGrid.Update(time); overlay.timeSinceSwitch = Math.Min(overlay.timeSinceSwitch + time.ElapsedGameTime.TotalSeconds * 5, 1.1D); if (shouldTurnUpdate && !ecoGrid.ContainsWalkingUnits) { shouldTurnUpdate = false; TurnUpdate(time); } }