public void Quittomain() { sound.ButtonSound(); Time.timeScale = 1f; pausemenu.SetActive(false); sound.pauseMusic.Stop(); sound.MenuMusic(); Application.LoadLevel(mainmenulevel); }
public void Quittomain() { savebutton.gameObject.SetActive(true); playername.gameObject.SetActive(true); sound.ButtonSound(); sound.MenuMusic(); Application.LoadLevel(mainmenulevel); }
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(); }
void Start() { sound.MenuMusic(); }