protected override JobHandle OnUpdate(JobHandle inputDeps) { var handle = new MenuInputCaptureJob { LeftMenuButtonDown = Input.GetButtonDown("HtcLeftMenuClick"), LeftMenuButtonUp = Input.GetButtonUp("HtcLeftMenuClick"), Commands = _endSimEcbSystem.CreateCommandBuffer().ToConcurrent() }.Schedule(this, inputDeps); handle.Complete(); return(handle); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { if (!VRSF_Components.SetupVRIsReady) { return(inputDeps); } var handle = new MenuInputCaptureJob() { MenuButtonDown = Input.GetButtonDown(_rightInput), MenuButtonUp = Input.GetButtonUp(_rightInput), Commands = _endSimEcbSystem.CreateCommandBuffer().ToConcurrent() }.Schedule(this, inputDeps); handle.Complete(); return(handle); }