/// <summary>Invokes <see cref="TriggerStayEvent"/>.</summary>
 public virtual void OnTriggerStay2D(Collider2D collider)
 {
     if (_TriggerStayEvent != null)
     {
         _TriggerStayEvent.Invoke(collider);
     }
 }
 private void OnTriggerEnter2D(Collider2D other)
 {
     triggerEnterEvent.Invoke(other);
 }
Exemple #3
0
 protected void OnTriggerExit2D(Collider2D other)
 {
     TriggerExit2D.Invoke(other);
 }