// InputManagerComp imc; protected override void Start() { Data = new PointerEventData(eventSystem); Data.position = camPos = new Vector2(cam.pixelWidth * 0.5f, cam.pixelHeight * 0.5f); gmsys = World.DefaultGameObjectInjectionWorld.GetOrCreateSystem <GameManagerSystem>(); imsys = World.DefaultGameObjectInjectionWorld.GetOrCreateSystem <KNInputManagerSystem>(); }
private void Start() { gmsys = World.DefaultGameObjectInjectionWorld.GetOrCreateSystem <GameManagerSystem>(); imsys = World.DefaultGameObjectInjectionWorld.GetOrCreateSystem <KNInputManagerSystem>(); EnableVR(XRDevice.isPresent); XRDevice.deviceLoaded += (s) => { if (s.Equals("OpenVR")) { EnableVR(true); } }; }