Esempio n. 1
0
 public void OnUpdate()
 {
     if (NodeMarkupTool.MouseRayValid)
     {
         if (!IsHoverGroup || !HoverGroup.OnUpdate())
         {
             HoverGroup = Groups.FirstOrDefault(g => g.OnUpdate());
         }
     }
     else
     {
         HoverGroup = null;
     }
 }
Esempio n. 2
0
 public void OnUpdate()
 {
     if (SingletonTool <NodeMarkupTool> .Instance.MouseRayValid)
     {
         if (!IsHoverGroup || !HoverGroup.OnUpdate())
         {
             HoverGroup = Groups.FirstOrDefault(g => g.OnUpdate());
         }
     }
     else
     {
         HoverGroup = null;
     }
 }
Esempio n. 3
0
 public override bool Intersects(PointsGroup <PointType> group) => LeaveBounds.Bounds.Any(b => 2 * (group.HoverBounds.center - b.center).magnitude <= group.HoverBounds.size.XZ().magnitude + b.size.XZ().magnitude);
Esempio n. 4
0
 public abstract bool Intersects(PointsGroup <PointType> group);