// Method for Punching public void Punch() { // Shoot only if the fire cooldown period // has expired if (PlayerStamina.curStamina > punchStamDrain) { if (punchAllowed) { animate.SetBool("Charge", false); animate.SetBool("Punch", true); animate.SetBool("Run", false); stamina.MinusStamina(punchStamDrain); punchAllowed = false; audio[1].Play(); attackObject.SetActive(true); StartCoroutine(StopPunch()); // Set time left until next shot // to the cooldown time ////punchCooldownTimeLeft = punchCooldownTime; } } }