예제 #1
0
 void IPointerTriggerPressDownHandler.OnPointerTriggerPressDown(ViveControllerModule.EventData eventData)
 {
     if (module == null || module != null && module == eventData.module)
     {
         teleporter.Teleport(eventData.worldPosition);
     }
 }
예제 #2
0
 void IGlobalTriggerTouchDownHandler.OnGlobalTriggerTouchDown(ViveControllerModule.EventData eventData)
 {
     if (button == ButtonType.TriggerTouch)
     {
         Toggle();
     }
 }
예제 #3
0
 void IGlobalGripPressDownHandler.OnGlobalGripPressDown(ViveControllerModule.EventData eventData)
 {
     if (button == ButtonType.Grip)
     {
         Toggle();
     }
 }
예제 #4
0
 void IGlobalTouchpadPressDownHandler.OnGlobalTouchpadPressDown(ViveControllerModule.EventData eventData)
 {
     if (button == ButtonType.TouchpadPress)
     {
         Toggle();
     }
 }
예제 #5
0
 void IGlobalApplicationMenuPressDownHandler.OnGlobalApplicationMenuPressDown(ViveControllerModule.EventData eventData)
 {
     if (button == ButtonType.AppMenu)
     {
         Toggle();
     }
 }