fix(cooldown-button): do not trigger event on StartCooldown as it can be triggered next to `StartCooldown` call
parent
67c2da49b1
commit
3737c610b6
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue