Exemple #1
0
 void Update()
 {
     musicmanager.changevolume(volumeslider.value);
 }
 void Start()
 {
     soundlevel = GameObject.FindObjectOfType <MusicMnanager>();
     sound      = playerprefsmngr.GetMasterVolume();
     soundlevel.changevolume(sound);
 }