//Shuriken void Ability2() { if (Input.GetKeyDown(KeyCode.Q) && isCooldown2 == false) { Debug.Log("hello"); isCooldown2 = true; abilityImage2.fillAmount = 1; shootController.ShootShuriken(); } if (isCooldown2) { abilityImage2.fillAmount -= 1 / cooldown2 * Time.deltaTime; if (abilityImage2.fillAmount <= 0) { abilityImage2.fillAmount = 0; isCooldown2 = false; } } }