Пример #1
0
 public static void Install(GameObject container)
 {
     if (_instance == null)
     {
         _instance = container.AddComponent <VRCameraMoveHelper>();
     }
 }
Пример #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);
        }