protected virtual void OnCollided(object sender, EventArgs args) { if (CollidedEvent != null) { CollidedEvent.Invoke(sender, args); } }
private void OnTriggerEnter2D(Collider2D other) { CollidedEvent?.Invoke(other); }