예제 #1
0
        //-------------------------------------------------
        private IEnumerator Start()
        {
            _instance = this;

            while (SteamVR.initializedState == SteamVR.InitializedStates.None || SteamVR.initializedState == SteamVR.InitializedStates.Initializing)
            {
                yield return(null);
            }

            if (SteamVR.instance != null || XRSettings.isDeviceActive)
            {
                ActivateRig(rigSteamVR);
            }
            else
            {
#if !HIDE_DEBUG_UI
                ActivateRig(rig2DFallback);
#endif
            }

            var componentBuilder = EcsRxApplicationBehaviour.Instance.Container.Resolve <IF_VR_Steam_IComponentBuilder>();
            componentBuilder.Build(this);
        }
예제 #2
0
 //-------------------------------------------------
 void Start()
 {
     player = IF_VR_Steam_Player.instance;
 }