Esempio n. 1
0
        public Vector3 GetTeleportationTarget(AnnotationGizmo gizmo)
        {
            var teleportationTarget = gizmo.Annotation.ViewPortPosition.position;

            return(new Vector3(teleportationTarget.x, 0, teleportationTarget.z));
        }
Esempio n. 2
0
 private void SelectedAnnotationGizmoChangedHandler(AnnotationGizmo annotationGizmo)
 {
     _selected = (annotationGizmo != null) && (annotationGizmo == RenderedAnnotationGizmo);
 }
        public AnnotationGizmo GetNextGizmo(AnnotationGizmo gizmo)
        {
            var iGizmo = GetIndexOfGizmoInList(gizmo);

            return(_annotationGizmos[(iGizmo + 1) % _annotationGizmos.Length]);
        }
        public AnnotationGizmo GetPreviousGizmo(AnnotationGizmo gizmo)
        {
            var iGizmo = GetIndexOfGizmoInList(gizmo);

            return(_annotationGizmos[(iGizmo - 1 + _annotationGizmos.Length) % _annotationGizmos.Length]);
        }
 private void SelectedAnnotationGizmoChangedHandler(AnnotationGizmo obj)
 {
     _isSelected = (obj == this);
     UpdateUI();
 }