Пример #1
0
    protected override void OnCollection(Collider2D collider)
    {
        PlaneController plane = collider.GetComponent <PlaneController>();

        if (plane == null || plane == _Own || plane.tag == _Own.tag)
        {
            return;
        }
        plane.BeShooted(_Own);
    }