Example #1
0
    void OnTriggerExit2D(Collider2D collider)
    {
        var ball = collider.GetComponent <Ball>();

        if (ball != null)
        {
            parent.OnBallOutOfBounds(ball);
        }
    }