private void UpdateHudActivity() { //We are not worried about var currentOxygenPercentage = explorationDurationLeft / MaxExplorationTime; var updateValues = new HudUpdateData() { ExplorationLimitFill = currentOxygenPercentage, MineralText = CurrentCurrencyBalance, IsFillingUp = CurrentExplorationState == ExplorationState.Replenish, IsLow = currentOxygenPercentage < PercentageForLowEnergyNotification / 100.0f }; PlayerHud.UpdateHud(updateValues); }