static async Task OnChangePlayModeAsync(PlayModeStateChange playMode) { if (playMode != PlayModeStateChange.EnteredPlayMode) { return; } await PackageListRepository.UpdatePackageList(); XRSettings.enabled = SwitchUseVR.EnabledVR(); }
static async void AsyncInitialize() { await PackageListRepository.UpdatePackageList(); var packageStates = new PackageStates( PackageListRepository.Contain("timeline"), PackageListRepository.Contain("textmeshpro"), PackageListRepository.Contain("postprocessing"), PackageListRepository.Contain("openvr") ); PackageInstallerWindow.ShowWithState(packageStates); }