Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (_parentStateMachine != null)
     {
         _parentStateMachine.OnTriggerEvent(AITriggerEventType.Enter, other);
     }
 }
Beispiel #2
0
 void OnTriggerEnter(Collider col)
 {
     if (_parentStateMachine != null)
     {
         _parentStateMachine.OnTriggerEvent(AITriggerEventType.Enter, col);
     }
 }
 protected virtual void OnTriggerEnter(Collider col)
 {
     // Notify child state
     if (_parentStateMachine != null)
     {
         _parentStateMachine.OnTriggerEvent(AITriggerEventType.Enter, col);
     }
 }
Beispiel #4
0
 private void OnTriggerEnter(Collider other)
 {
     if (_parentStateMachine != null)
     {
         Debug.LogErrorFormat("[AISensor] OnTriggerEnter {0}", other.name);
         _parentStateMachine.OnTriggerEvent(AITriggerEventType.Enter, other);
     }
 }