private void AttackCheck() { if (Time.time >= attackInputTimeCounter && attackCheck) { if (!comingJumpInput && !comingDashInput && !comingSpawnBoxInput && !GetComponent <Movement>().inDialogue()) { canAttack = true; } else { canAttack = false; } attackCheck = false; } if (canAttack) { canAttack = false; animatiorController.PlayAttackAnim(); } }