Exemplo n.º 1
0
    public void WhoScored(Vector3 lastPB)
    {
        // false - rival scored
        // true - player scored

        //ptP = (-3.40+)
        audioFXscript.Point();
        int sideBall = 0;

        if (lastPB.z > -3.45)
        {
            ptsP += 1;
        }
        else if (lastPB.z < -4)
        {
            ptsR    += 1;
            sideBall = 1;
        }
        else
        {
            //No point
        }

        StartCoroutine(ReturnPosition(sideBall));
    }