Beispiel #1
0
    public void StarPowerDeacceleration()
    {
        scoreDisplay.NoStarPower();
        multiplierDisplay.NoStarPower();
        //  print("deacceleration event");

        //SetSpeed(initialGameSpeed, starPowDeacc, initialSpawnRate , initialRotationSpeed);

        //visuals
        playerAnim.SetTrigger("Deaccelerate");

        background.setOldBackground();
        //scroll1.scrollSpeed = -0.001f;
        //scroll1.scrollSpeed = -0.001f;
        //scroll2.scrollSpeed = -0.01f;
        //scroll2.scrollSpeed2 = -0.01f;
        //scroll1.setTexture(0);
        //scroll2.setTexture(0);
        //scrollRend1.material.color = originalColor1;
        //scrollRend2.material.color = originalColor2;
        backgroundLight.intensity = defaultIntesity;

        audioManager.DeactivateStarPower();
        godModeStart = true;
        starPower    = false;
        SetSpeed(initialGameSpeed * postStarReset, 1000, initialSpawnRate * postStarReset, initialRotationSpeed);
    }