Exemple #1
0
    //check to see if boxes where correctly sent
    public void Evaluate(PackageData box)
    {
        if (!isMoving)
        {
            if (box.accepted && !box.reject)
            {
                correct++;
                right.Play();
            }
            else if (!box.accepted && box.reject)
            {
                correct++;
                right.Play();
            }
            else
            {
                incorrect++;
                wrong.Play();
            }

            box.DestroyBox();
        }
    }