public void OnUpdate() { if (NodeMarkupTool.MouseRayValid) { if (!IsHoverGroup || !HoverGroup.OnUpdate()) { HoverGroup = Groups.FirstOrDefault(g => g.OnUpdate()); } } else { HoverGroup = null; } }
public void OnUpdate() { if (SingletonTool <NodeMarkupTool> .Instance.MouseRayValid) { if (!IsHoverGroup || !HoverGroup.OnUpdate()) { HoverGroup = Groups.FirstOrDefault(g => g.OnUpdate()); } } else { HoverGroup = null; } }
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);
public abstract bool Intersects(PointsGroup <PointType> group);