예제 #1
0
    void Land()
    {
        float deltaScore = 50;

        if (landingZone != null)
        {
            deltaScore *= landingZone.GetMulti();
            zoneController.DeactivateSpawn(landingZone.gameObject);
            zoneController.AddZones(1);
            landingZone = null;
            audioManager.PlaySound("SuccessfulLanding");
        }

        if (doublePoints)
        {
            deltaScore *= 2;
        }

        score += deltaScore;

        grounded = true;

        gameController.InvokeRespawn(this, false);
    }