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