// 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()); }
public void SaveAndExit() { PlayerPrefMgr.SetMasterVolume(Volume_slider.value); PlayerPrefMgr.SetDifficulty(diff_slider.value); lvlMgr.LoadLevel("01StartMenu"); }