public void ClickAbility() { if (cooldownHandler.HasCooldown(ButtonId)) { return; } player.HandleSpell(ButtonId); image.color = new Color(0.9f, 0.1f, 0.1f, 0.9f); text.color = new Color(1.0f, 1.0f, 1.0f, 0.9f); cooldownHandler.AddCooldown(ButtonId); }