public static void Install(GameObject container) { if (_instance == null) { _instance = container.AddComponent <VRItemObjMoveHelper>(); } }
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); }