diff --git a/Scripts/Controls/CooldownButton.cs b/Scripts/Controls/CooldownButton.cs index 9d15ecd..502362b 100644 --- a/Scripts/Controls/CooldownButton.cs +++ b/Scripts/Controls/CooldownButton.cs @@ -144,9 +144,11 @@ namespace UnityEngine.UI.Extensions /// public void StartCooldown() { - OnCooldownStart.Invoke(new PointerEventData.InputButton()); + PointerEventData emptySource = new PointerEventData(EventSystem.current); + buttonSource = emptySource; + OnCooldownStart.Invoke(emptySource.button); cooldownTimeRemaining = cooldownTimeout; - cooldownActive = cooldownInEffect = true; + CooldownActive = cooldownInEffect = true; } ///