Assets.Scripts.Scenes.Game.LootItems.LootItemCountdownController.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
        void Update()
        {
            if (currentLootItem != null)
            {
                UpdateRemainingEffectTime(currentLootItem.EffectDuration - new TimeSpan(0, 0, (int)currentLootItem.UsageStartTimeDelta));
                RemainingEffectTimeText.GetComponent<TextColorAnimator>().Enabled = currentLootItem.EffectDuration.TotalSeconds - currentLootItem.UsageStartTimeDelta < FlashTriggerTime;
                currentLootItem.UsageStartTimeDelta += Time.deltaTime;
            }
        }