private void StartExternalApp() { if (GlobalData.m_isFirstEntered) { PlayTimeMgr.Inst.StartRecord(); GlobalData.m_isFirstEntered = false; } // StartHookWindows(); RecordMgr.Inst.StartRecord(cfgGameList); string relativePath = cfgGameList._relativePath; string _appPath = GlobalData.AppContentPath() + relativePath; Debug.Log("_appPath:" + _appPath); VRSettings.enabled = false; Assist.StartExternalApp(_appPath, () => { VRSettings.enabled = true; RecordMgr.Inst.StopRecord(cfgGameList); // HookProcess.Kill(); ActiveMainWindow("BlackHole"); TimerManager.Add(1, (x) => { Camera.main.gameObject.GetComponent <RestVRState>().Rest(); }); isOpening = false; }); }
private void StartExternalApp() { if (GlobalData.m_isFirstEntered) { PlayTimeMgr.Inst.StartRecord(); GlobalData.m_isFirstEntered = false; } string relativePath = @"大雄宝殿/Buddha.exe"; string _appPath = GlobalData.AppContentPath() + relativePath; Debug.Log("_appPath:" + _appPath); VRSettings.enabled = false; Assist.StartExternalApp(_appPath, () => { VRSettings.enabled = true; ActiveMainWindow("BlackHole"); TimerManager.Add(1, (x) => { Camera.main.gameObject.GetComponent <RestVRState>().Rest(); }); isOpening = false; }); }