public virtual void OnBeginDrag(DCLBuilderGizmoAxis axis, Transform entityTransform)
 {
     startDragging   = true;
     targetTransform = entityTransform;
     activeAxis      = axis;
     axis.SetColorHighlight();
 }
示例#2
0
 private void SetAxisHover(DCLBuilderGizmoAxis axis)
 {
     if (hoveredAxis != null && hoveredAxis != axis)
     {
         hoveredAxis.SetColorDefault();
     }
     else if (axis != null)
     {
         axis.SetColorHighlight();
     }
     hoveredAxis = axis;
 }