protected virtual void PerformAlertRadius(Collider[] colliders) { var alert = colliders.ToList().Find(c => LayerUtils.IsInLayerMask(c.gameObject.layer, _pMask)); if (alert == null) { if (IsAlerted) { IsAlerted = false; } return; } if (!IsAlerted) { _isThinking = false; IsAlerted = true; aiAnimation.SetBool("isRunning", true); aiAnimation.SetBool("isWalking", false); aiAnimation.SetBool("isStunned", false); } }