public HighlightPointsAnnotation AddHighlightPointsAnnotation(List <Transform> bones, float timeOfCreation) { HighlightPointsAnnotation hpAnnotation = new HighlightPointsAnnotation(); hpAnnotation.ID = HighlightPointsAnnotationList.Count + 1; hpAnnotation.Bones = bones; hpAnnotation.TimeOfCreation = timeOfCreation; HighlightPointsAnnotationList.Add(hpAnnotation); return(hpAnnotation); }
private void LeftMouseReleaseEvent() { //pause a frame so you don't pick up the same mouse down event. //yield return new WaitForEndOfFrame(); lmbclicked = false; Debug.Log("LMB RELEASE"); if (scribblerButtonIsActive && deltaHoldTime > doubleClickTimeLimit) { scribbler.IsActive = false; scribbler.assignClosestBone(trackerClientRecorded.Humans); ScribblerAnnotation sbAnnotation = annotationManager.AddScribblerAnnotation(scribbler.lineRendererGO, Time.time, scribbler.center); sbAnnotation.TimeOfCreation = currentExecutionTime; } if (highlightPointsButtonIsActive && deltaHoldTime > doubleClickTimeLimit) { highlightPoints.IsActive = false; HighlightPointsAnnotation hpAnnotation = annotationManager.AddHighlightPointsAnnotation(highlightPoints.bonesTransforms, Time.time); hpAnnotation.highlightColor = color; hpAnnotation.TimeOfCreation = currentExecutionTime; } deltaHoldTime = 0; }