/// <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); }
protected void OnTriggerExit2D(Collider2D other) { TriggerExit2D.Invoke(other); }