public void attackAnimation() { if (attacking == false) { if (Input.GetKeyDown("space")) { Debug.Log("SPACE PRESSED"); playerMov.InputEnabled = false; attacking = true; anim.ChangeAnimationState(atkk); playerMov.ChangeAnimationState("weaponIdle"); Invoke("unlockAtkk", anim.animationTime()); } } }