Exemplo n.º 1
0
    private void OnCollisionEnter(Collision collisionInfo)
    {
        if (collisionInfo.collider.tag == "playerBeer1")
        {
            pointSystem.addPointForTeam2();
        }

        if (collisionInfo.collider.tag == "playerBeer2")
        {
            pointSystem.addPointForTeam1();
        }
    }