protected virtual void OnTrackingChanged(SteamVR_Action_Pose changedAction, SteamVR_Input_Sources changedSource, ETrackingResult trackingChanged)
 {
     if (onTrackingChanged != null)
     {
         onTrackingChanged.Invoke(this, inputSource, trackingChanged);
     }
     if (onTrackingChangedEvent != null)
     {
         onTrackingChangedEvent.Invoke(this, inputSource, trackingChanged);
     }
 }
Пример #2
0
 private void OnTrackingChanged(SteamVR_Action_Skeleton fromAction, ETrackingResult trackingState)
 {
     if (onTrackingChanged != null)
     {
         onTrackingChanged.Invoke(this, inputSource, trackingState);
     }
     if (onTrackingChangedEvent != null)
     {
         onTrackingChangedEvent.Invoke(this, inputSource, trackingState);
     }
 }