Пример #1
0
 protected virtual void OnCollided(object sender, EventArgs args)
 {
     if (CollidedEvent != null)
     {
         CollidedEvent.Invoke(sender, args);
     }
 }
Пример #2
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     CollidedEvent?.Invoke(other);
 }