Пример #1
0
 public static bool EnableVRMenuValidate()
 {
     if (!PackageListRepository.Contain("openvr"))
     {
         return(false);
     }
     return(PlayerPrefs.GetInt(useVRKey, 1) != 1);
 }
Пример #2
0
        static async Task OnChangePlayModeAsync(PlayModeStateChange playMode)
        {
            if (playMode != PlayModeStateChange.EnteredPlayMode)
            {
                return;
            }
            await PackageListRepository.UpdatePackageList();

            if (!PackageListRepository.Contain("openvr") || PlayerPrefs.GetInt(SwitchUseVR.useVRKey) == 0)
            {
                XRSettings.enabled = false;
            }
        }