Ejemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        var ball = other.GetComponent <Ball>();

        if (ball != null)
        {
            BallInDrain?.Invoke(ball);
        }
    }
Ejemplo n.º 2
0
    void OnTriggerEnter(Collider other)
    {
        var _ball = other.GetComponent <Ball>();

        BallInDrain?.Invoke(_ball);
    }