예제 #1
0
 //resetting dialogue to begining of cycle
 private void OnTriggerExit(Collider other)
 {
     if (other.gameObject.CompareTag("Player"))
     {
         TriggerExitEvent.Invoke();
     }
 }
예제 #2
0
 public void RegisterTriggerExit(UnityAction <Collider> evt)
 {
     if (triggerExitEvent == null)
     {
         triggerExitEvent = new TriggerExitEvent();
     }
     triggerExitEvent.AddListener(evt);
 }
예제 #3
0
 private void OnTriggerExit(Collider other)
 {
     TriggerExitEvent.Invoke();
 }
예제 #4
0
        void OnTriggerExit(Collider collider)
        {
            var e = new TriggerExitEvent(egoComponent, collider.gameObject.GetComponent <EgoComponent>(), collider);

            EgoEvents <TriggerExitEvent> .AddEvent(e);
        }
예제 #5
0
 public void OnTriggerExit(Collider other)
 {
     TriggerExitEvent.Invoke();
 }
예제 #6
0
 private void OnTriggerExit(Collider other)
 {
     TriggerExitEvent.Invoke();
     Debug.Log("Exit");
 }
예제 #7
0
 protected virtual void OnTriggerExit(Collider other)
 {
     TriggerExitUnityEvent.Invoke();
     TriggerExitEvent?.Invoke(this, other);
 }
예제 #8
0
 private void OnTriggerExit2D(Collider2D other)
 {
     // 衝突をやめたとき通知する
     TriggerExitEvent?.Invoke(other);
 }
예제 #9
0
 void OnTriggerExit( Collider collider )
 {
     var e = new TriggerExitEvent( egoComponent, collider.gameObject.GetComponent<EgoComponent>(), collider );
     EgoEvents<TriggerExitEvent>.AddEvent( e );
 }