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