// Use this for initialization void Start() { musicMgr = GameObject.FindObjectOfType <MusicMenager>(); Volume_slider.value = PlayerPrefMgr.GetMasterVolume(); diff_slider.value = PlayerPrefMgr.GetDifficulty(); }
// Use this for initialization void Start() { print(PlayerPrefMgr.GetMasterVolume()); PlayerPrefMgr.SetMasterVolume(0.3f); print(PlayerPrefMgr.GetMasterVolume()); print(PlayerPrefMgr.IsLevelUnlocked(2)); PlayerPrefMgr.UnlockLevel(2); print(PlayerPrefMgr.IsLevelUnlocked(2)); print(PlayerPrefMgr.GetDifficulty()); PlayerPrefMgr.SetDifficulty(2); print(PlayerPrefMgr.GetDifficulty()); }