public static VRControllerMgr Install(GameObject container) { if (_instance == null) { _instance = container.AddComponent <VRControllerMgr>(); _instance.OnLevelWasLoaded(Application.loadedLevel); } return(_instance); }
protected override void OnAwake() { SaveLoadSceneHook.InstallHook(); LoadFixHook.InstallHook(); VR.Manager.SetMode <StudioStandingMode>(); var gameObject = new GameObject("KKCharaStudioVR"); DontDestroyOnLoad(gameObject); IKTool.Create(gameObject); VRControllerMgr.Install(gameObject); VRCameraMoveHelper.Install(gameObject); VRItemObjMoveHelper.Install(gameObject); gameObject.AddComponent <KKCharaStudioVRGUI>(); DontDestroyOnLoad(VRCamera.Instance.gameObject); }