//when hit by playersword, knockback, but we need to limit this void OnTriggerEnter(Collider col) { if (col.gameObject.name == "PlayerSwordTrigger") { GetComponent <EnemySoundController>().PlayEnemyHit(); if (!poiseActive) { enemyMovement.HelpKnockback(); staggerCount++; resetListCount = 0; } else if (GetComponent <EnemyAI>().GetCurrentStatus() != EnemyBehaviorStatus.Attacking) { GetComponent <KnightEnemyActions>().PerformUnblockableAttack(); } } }