fix(cooldown-button): do not trigger event on StartCooldown as it can be triggered next to `StartCooldown` call

pull/413/head
Gabriel Juchault 2018-11-21 13:14:32 +00:00
parent 67c2da49b1
commit 3737c610b6
1 changed files with 0 additions and 1 deletions

View File

@ -144,7 +144,6 @@ namespace UnityEngine.UI.Extensions
/// </summary> /// </summary>
public void StartCooldown() public void StartCooldown()
{ {
if(OnCooldownStart != null) OnCooldownStart.Invoke(eventData.button);
cooldownTimeRemaining = cooldownTimeout; cooldownTimeRemaining = cooldownTimeout;
cooldownActive = cooldownInEffect = true; cooldownActive = cooldownInEffect = true;
} }