Exemplo n.º 1
0
 public static VRControllerMgr Install(GameObject container)
 {
     if (_instance == null)
     {
         _instance = container.AddComponent <VRControllerMgr>();
         _instance.OnLevelWasLoaded(Application.loadedLevel);
     }
     return(_instance);
 }
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);
        }