void HandleOnSkeletonUpdateEvent(nuitrack.SkeletonData _skeletonData) { if (skeletonData != null) { skeletonData.Dispose(); } skeletonData = (nuitrack.SkeletonData)_skeletonData.Clone(); //Debug.Log("Skeleton Update "); sensorConnected = true; onSkeletonTrackerUpdate?.Invoke(skeletonData); }
void HandleOnSkeletonUpdateEvent(nuitrack.SkeletonData _skeletonData) { if (skeletonData != null) { skeletonData.Dispose(); } skeletonData = (nuitrack.SkeletonData)_skeletonData.Clone(); sensorConnected = true; try { onSkeletonTrackerUpdate?.Invoke(skeletonData); } catch (Exception ex) { Debug.LogException(ex); } }