Exemplo n.º 1
0
 public void Quittomain()
 {
     sound.ButtonSound();
     Time.timeScale = 1f;
     pausemenu.SetActive(false);
     sound.pauseMusic.Stop();
     sound.MenuMusic();
     Application.LoadLevel(mainmenulevel);
 }
Exemplo n.º 2
0
    public void Quittomain()
    {
        savebutton.gameObject.SetActive(true);
        playername.gameObject.SetActive(true);

        sound.ButtonSound();

        sound.MenuMusic();
        Application.LoadLevel(mainmenulevel);
    }
Exemplo n.º 3
0
    void Start()
    {
        values = FindObjectOfType <Option_values>();

        randomcointhreshold  = values.cointhreshold;
        randomspikethreshold = values.spikethreshold;
        powerupthreshold     = values.powerupthreshold;
        enemythreshold       = values.enemythreshold;
        check = values.check;

        coinslider.value    = randomcointhreshold;
        spikeslider.value   = randomspikethreshold;
        powerupslider.value = powerupthreshold;
        enemyslider.value   = enemythreshold;
        audioslider.value   = AudioListener.volume;
        parallax.isOn       = values.parallax;


        sound.MenuMusic();
    }
Exemplo n.º 4
0
 void Start()
 {
     sound.MenuMusic();
 }