コード例 #1
0
    // 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());
    }
コード例 #2
0
ファイル: OptionsMgr.cs プロジェクト: raqbiel/Unity
 public void SaveAndExit()
 {
     PlayerPrefMgr.SetMasterVolume(Volume_slider.value);
     PlayerPrefMgr.SetDifficulty(diff_slider.value);
     lvlMgr.LoadLevel("01StartMenu");
 }