void OnTriggerEnter2D(Collider2D other) { if (IsTagAllowed(other.tag) == true) { aiBehavior.OnTrigger(AIState.Trigger.TriggerEnter, col, other); } }