Пример #1
0
 private void UseInputEnd(InteractionSourceReleasedEventArgs obj)
 {
     if (/*obj.pressType == pressType && */ obj.state.source.handedness == handedness)
     {
         state = UseStateEnum.Inactive;
         UseEnd();
     }
 }
Пример #2
0
 private void UseInputStart(InteractionSourcePressedEventArgs obj)
 {
     if (/*obj.pressType == pressType && (*/ handedness == InteractionSourceHandedness.Unknown || handedness == obj.state.source.handedness)
     {
         if (GetComponent <BaseGrabbable>().GrabState == GrabStateEnum.Single)
         {
             state = UseStateEnum.Active;
             UseStart();
         }
     }
 }