Esempio n. 1
0
    // Called from the main sphere when it collides with the KillZone object
    public void OnMainSphereLost()
    {
        spheres--;

        if (spheres <= 0)
        {
            OnGameOver();
        }
        else
        {
            paddle.AttachSphere();             // Simply reset the sphere position if we have a "spare"
        }
        scoreGUI.SetMaxMedals(spheres);
    }