From 3737c610b6d0299eede4c4f5a64072c3cb72ead6 Mon Sep 17 00:00:00 2001 From: Gabriel Juchault Date: Wed, 21 Nov 2018 13:14:32 +0000 Subject: [PATCH] fix(cooldown-button): do not trigger event on StartCooldown as it can be triggered next to `StartCooldown` call --- Scripts/Controls/CooldownButton.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Scripts/Controls/CooldownButton.cs b/Scripts/Controls/CooldownButton.cs index 56b98f8..a346b22 100644 --- a/Scripts/Controls/CooldownButton.cs +++ b/Scripts/Controls/CooldownButton.cs @@ -144,7 +144,6 @@ namespace UnityEngine.UI.Extensions /// public void StartCooldown() { - if(OnCooldownStart != null) OnCooldownStart.Invoke(eventData.button); cooldownTimeRemaining = cooldownTimeout; cooldownActive = cooldownInEffect = true; }