private void IntegrateSkeleton(KinectSkeleton skeleton, int number) { if (number >= 0) { filteredSkeletons[number].IntegrateSkeleton(skeleton); } else { FilteredSkeleton tempSkel = new FilteredSkeleton(); tempSkel.IntegrateSkeleton(skeleton); filteredSkeletons.Add(tempSkel); } }
public void Add(FilteredSkeleton skeleton) { lock (lockObj) { if (refCount == 0) { mainList.Add(skeleton); } else { addCache.Add(skeleton); } } }