Exemplo n.º 1
0
    private void OnTriggerEnter(Collider coll)
    {
        GameObject objectToHit = coll.gameObject;

        if (objectToHit.GetComponent <Ball>() != null)
        {
            _pinCounter.ChangeTextColorToRed();
            _pinCounter.SetBallAsLeftTheBox();
        }
    }