Exemple #1
0
 // Use this for initialization
 void Start()
 {
     //test volume
     //print ("Volume" + PlayPrefsManager.GetMasterVolume());
     //PlayPrefsManager.SetMasterVolume(0.3f);
     print("Volume" + PlayPrefsManager.GetMasterVolume());
     //test level
     print("Level" + PlayPrefsManager.IsLevelUnlocked(2));
     PlayPrefsManager.UnlockLevel(2);
     print("Level" + PlayPrefsManager.IsLevelUnlocked(2));
     // test difficulty
     print("Difficulty" + PlayPrefsManager.GetDifficulty());
     PlayPrefsManager.SetDifficulty(0.2f);
     print("Difficulty" + PlayPrefsManager.GetDifficulty());
 }
Exemple #2
0
 void Start()
 {
     musicManager           = GameObject.FindObjectOfType <MusicManager>();
     volumeSlider.value     = PlayPrefsManager.GetMasterVolume();
     difficultySlider.value = PlayPrefsManager.GetDifficulty();
 }
Exemple #3
0
 void Start()
 {
     audioSource        = GetComponent <AudioSource>();
     audioSource.volume = PlayPrefsManager.GetMasterVolume();
 }