Пример #1
0
 void Start()
 {
     volumeSlider.value     = PlayPrefsController.GetMasterVolume();
     difficultySlider.value = PlayPrefsController.GetDifficulty();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     DontDestroyOnLoad(this);
     audioSource        = GetComponent <AudioSource>();
     audioSource.volume = PlayPrefsController.GetMasterVolume();
 }