void HandleCancelAnnotation() { if (_rightController.GetPressUp(SteamVR_Controller.ButtonMask.ApplicationMenu) && _video != null && _annotationManager.staticAnnotationList.Count > 0) { int numberOfAnnotations = _annotationManager.staticAnnotationList.Count; StaticAnnotation lastAnnotation = _annotationManager.staticAnnotationList[numberOfAnnotations - 1]; lastAnnotation.reset(); _annotationManager.staticAnnotationList.Remove(lastAnnotation); _annotationManager.DrawAnnotationsOnTimeline(); //Debug.Log("pressed cancel annotation"); } }