Пример #1
0
        public static void LoadDemoOptions()
        {
            PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision);

            if (playerPrefs.PrefKeyExists(Constants.AllProgressionUnlocked))
            {
                AllProgressionUnlocked = playerPrefs.GetPrefInt(Constants.AllProgressionUnlocked) == 1;
            }
            if (playerPrefs.PrefKeyExists(Constants.GoProMode))
            {
                Disney.Vision.Internal.XimmerseTracker.UseGoProCameras = playerPrefs.GetPrefInt(Constants.GoProMode) == 1;
            }
        }
Пример #2
0
        public static bool UseProfileSelection()
        {
            PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision);

            if (playerPrefs.PrefKeyExists(Constants.UseProfileSelection))
            {
                return(playerPrefs.GetPrefInt(Constants.UseProfileSelection) == 1);
            }

            return(false);
        }
Пример #3
0
        public ColorID GetSavedSaberColorID()
        {
            PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision);

            // Default if never set.
            ColorID color = ColorID.BLUE;

            if (playerPrefs.PrefKeyExists(Constants.SaberColorPlayerPrefKey))
            {
                color = (ColorID)playerPrefs.GetPrefInt(Constants.SaberColorPlayerPrefKey);
            }

            return(color);
        }
Пример #4
0
        /// <summary>
        /// Gets whether or not the call has already been made.
        /// </summary>
        /// <returns><c>true</c>, if the call has already been made, <c>false</c> otherwise.</returns>
        private static bool GetCallMade()
        {
            if (testCall)
            {
                return(false);
            }

            if (callMadeCached)
            {
                return(true);
            }

            PlayerPrefsStorage storage = new PlayerPrefsStorage(Game.ForceVision);

            callMadeCached = storage.GetPrefInt(playerprefsKey, 0) > 0;

            return(callMadeCached);
        }