private void Update(WorldForm wf, ref MapSelection sel, Vector3 p) { PathNode?.SetPosition(p); if (PathNode != sel.PathNode) { if (sel.PathLink != null) { wf.SelectPathLink(sel.PathLink); } else { wf.SelectPathNode(PathNode); } } wf.SetWidgetPosition(p); UpdateGraphics(wf); }