void OnTriggerEnter(Collider other) { BaseEnemy be = other.GetComponent <BaseEnemy>(); if (be) { be.ChangeStateTo(BehaviorState.Patrolling); } }
private void OnAttackTriggerVolumeExit(TriggerVolume volume, Collider collider1) { enemy.ChangeStateTo(BehaviorState.Patrolling); }