예제 #1
0
    private void OnTriggerEnter(Collider other)
    {
        var ball = other.GetComponent <Ball>();

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

        BallInDrain?.Invoke(_ball);
    }