コード例 #1
0
 private void Exit(XRPhysicsInteractor interactor)
 {
     if (_hoverState != HoverState.Press)
     {
         _hitTargetInstance.gameObject.SetActive(false);
     }
 }
コード例 #2
0
 private void Stay(XRPhysicsInteractor interactor)
 {
     if (_hoverState != HoverState.Press)
     {
         _hitTargetInstance.transform.position = interactor.CurrentHitRay.origin;
         _hitTargetInstance.transform.up       = interactor.CurrentHitRay.direction;
     }
 }
コード例 #3
0
 private void Enter(XRPhysicsInteractor interactor)
 {
     _hitTargetInstance.gameObject.SetActive(true);
 }