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