public override void Update() { base.Update(); // Run blink timer blinkTimer += Time.deltaTime; if (blinkTimer > blinkInterval) { blinkTimer -= blinkInterval; blinkState = !blinkState; } // Blink expiring icons when game not paused // Otherwise always show icons when paused if (!GameManager.IsGamePaused) { SetIconBlinkState(activeSelfList, blinkState); SetIconBlinkState(activeOtherList, blinkState); } else { // Disable blink and update tooltips when paused SetIconBlinkState(activeSelfList, true); SetIconBlinkState(activeOtherList, true); if (defaultToolTip != null) { defaultToolTip.Update(); } } }
public override void Update() { base.Update(); // Run blink timer blinkTimer += Time.deltaTime; if (blinkTimer > blinkInterval) { blinkTimer -= blinkInterval; blinkState = !blinkState; } // Blink expiring icons when game not paused // Otherwise always show icons when paused if (!GameManager.IsGamePaused) { SetIconBlinkState(activeSelfList, blinkState); SetIconBlinkState(activeOtherList, blinkState); } else { // Disable blink and update tooltips when paused SetIconBlinkState(activeSelfList, true); SetIconBlinkState(activeOtherList, true); if (defaultToolTip != null) { defaultToolTip.Update(); } } // Adjust icons when large HUD state changes if (DaggerfallUI.Instance.DaggerfallHUD != null && DaggerfallUI.Instance.DaggerfallHUD.LargeHUD.Enabled != lastLargeHUD) { lastLargeHUD = DaggerfallUI.Instance.DaggerfallHUD.LargeHUD.Enabled; UpdateIcons(); } }