Пример #1
0
 /// <summary>
 /// When something collides with our ledge collider, we trigger a LedgeEvent
 /// </summary>
 /// <param name="collider"></param>
 protected virtual void OnTriggerEnter2D(Collider2D collider)
 {
     if (collider.tag == _playerTag)
     {
         LedgeEvent.Trigger(collider, this);
     }
 }