예제 #1
0
파일: Player.cs 프로젝트: vchelaru/Anfloga
        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);
        }