Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     volumeSlide.value     = PlayerPrefsControler.GetVolume();
     difficultySlide.value = PlayerPrefsControler.GetDifficulty();
     AudioPlayer           = FindObjectOfType <AudioPlayer>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     DontDestroyOnLoad(this);
     audioSource        = GetComponent <AudioSource>();
     audioSource.volume = PlayerPrefsControler.GetVolume();
 }