/// <summary> /// Sets that the call has been made. /// </summary> private static void SetCallMade() { PlayerPrefsStorage storage = new PlayerPrefsStorage(Game.ForceVision); storage.SetPrefInt(playerprefsKey, 1); callMadeCached = true; }
private void Start() { // adding listeners for setup events StereoSetupEvents.OnBluetoothStateUpdate += OnBluetoothState; StereoSetupEvents.OnHmdConnected += OnHmdConnected; StereoSetupEvents.OnPeripheralConnected += OnPeripheralConnected; StereoSetupEvents.OnPeripheralDisconnected += OnPeripheralDisconnected; StereoSetupEvents.OnMutedStateUpdate += OnMutedState; StereoSetupEvents.OnVolumeChanged += OnVolumeChanged; StereoSetupEvents.OnLightSaberCalibration += OnLightSaberCalibration; // adding listener for toggle change event (which happens when a toggle is selected) StereoToggleGroup.OnToggleChange += OnToggleChangeHandler; // adding listener for countdown event Countdown.OnCountdownEvent += OnCountdownEventHandler; // adding listener for animation events GetComponent <AnimationEvents>().OnAnimationComplete += OnAnimationCompleteHandler; // getting volume level VolumeBar.fillAmount = SetupController.Container.NativeSettings.GetVolume(); // setting default light saber sync countdown text defaultLightSaberSyncText = Localizer.Get(LightSaberSyncCountdownText.gameObject.GetComponent <LocalizedText>().Token); // updating the initial state of setup screens UpdateScreen(StereoSetupStep.Welcome); if (!JCSettingsManager.HasDeviceProfile) { UnsupportedPhonePopup.SetActive(true); UnsupportedPhoneButton.SetActive(true); } PlayerPrefsStorage prefsStorage = new PlayerPrefsStorage(Game.ForceVision); // show required hardware screen the first time the player sees the FTUE if (!prefsStorage.PrefKeyExists(RequiredHardwareShown)) { prefsStorage.SetPrefInt(RequiredHardwareShown, 1); RequiredHardwareScreen.SetActive(true); } }
public void SetSavedSaberColorID(int colorID) { PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision); playerPrefs.SetPrefInt(Constants.SaberColorPlayerPrefKey, colorID); }
public static void SaveGoProMode(bool enabled) { PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision); playerPrefs.SetPrefInt(Constants.GoProMode, (enabled) ? 1 : 0); }
public static void SaveAllProgressionUnlocked(bool enabled) { PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision); playerPrefs.SetPrefInt(Constants.AllProgressionUnlocked, (enabled) ? 1 : 0); }
public static void SaveProfileSelectionEnabled(bool enabled) { PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision); playerPrefs.SetPrefInt(Constants.UseProfileSelection, (enabled) ? 1 : 0); }
public void SetSpatialization(bool enabled) { PlayerPrefsStorage playerPrefs = new PlayerPrefsStorage(Game.ForceVision); playerPrefs.SetPrefInt(Constants.UseSpatialization, (enabled) ? 1 : 0); }