Ejemplo n.º 1
0
    } // End of function.

    private bool CheckFluid(float fruitCountTotal)
    {
        // If there is to much fluid in glass.
        if (fruitCountTotal > 11)
        {
            hasSpilled = true;
            // Stop timer.
            p.SetTimer(false);
            // Player cannot pick up more fruit.
            canOnlyHold = 0;
            // Start customer handle.
            c.Action("Spilled");
            anim.SetBool("IsSad", true);
            playerSpeed = 10f;
        }
        // Default return value.
        return(false);
    } // End of function
Ejemplo n.º 2
0
 private void TimesUp()
 {
     // Stop timer.
     SetTimer(false);
     // Start customer handle.
     c.Action("Time");
     p.SetPlayerIsSad();
     p.SetLevelFinished(true);
 }