private void ActionbarControllerOnGlobalCooldownEvent(object sender, GlobalCooldownEventArgs e) { foreach (var button in _actionbarButtons) { if (button.Value.ButtonModel.ActionToExecute.IgnoreGlobalCooldown) { continue; } StartCoroutine(button.Value.DoCooldownIteration(e.Duration)); } }
public void OnGlobalCooldownInitiate(object sender, GlobalCooldownEventArgs args) { _root.Q <VisualElement>("Actionbar").Children().ToList().ForEach(v => CoolDownAnimation(v, args.Duration)); }