//------------------------------------------------- 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); }
//------------------------------------------------- void Start() { player = IF_VR_Steam_Player.instance; }