Пример #1
0
    void OnTriggerEnter(Collider other)
    {
        BaseEnemy be = other.GetComponent <BaseEnemy>();

        if (be)
        {
            be.ChangeStateTo(BehaviorState.Patrolling);
        }
    }
Пример #2
0
 private void OnAttackTriggerVolumeExit(TriggerVolume volume, Collider collider1)
 {
     enemy.ChangeStateTo(BehaviorState.Patrolling);
 }