void HandleOnHandsUpdateEvent(nuitrack.HandTrackerData _handTrackerData) { if (handTrackerData != null) { handTrackerData.Dispose(); } handTrackerData = (nuitrack.HandTrackerData)_handTrackerData.Clone(); try { onHandsTrackerUpdate?.Invoke(handTrackerData); } catch (Exception ex) { Debug.LogException(ex); } if (handTrackerData == null) { return; } if (Users.CurrentUserID != 0) { currentHands = handTrackerData.GetUserHandsByID(Users.CurrentUserID); } else { currentHands = null; } }
void HandleOnHandsUpdateEvent(nuitrack.HandTrackerData _handTrackerData) { if (handTrackerData != null) { handTrackerData.Dispose(); } handTrackerData = (nuitrack.HandTrackerData)_handTrackerData.Clone(); onHandsTrackerUpdate?.Invoke(handTrackerData); //Debug.Log ("Grabbed hands"); if (handTrackerData == null) { return; } if (CurrentUserTracker.CurrentUser != 0) { currentHands = handTrackerData.GetUserHandsByID(CurrentUserTracker.CurrentUser); } else { currentHands = null; } }