/// <summary> /// This is when creating the first pass of LinkRects /// </summary> /// <param name="grid"></param> public void StartLinking(List <Vector3> grid) { AddCurrent(); //Debug.Log("GridCount:" + grid.Count); if (grid.Count > 0) { _cuRect = (new LinkRect(grid)); } else { RectLinkingDone(); } }
public void AddLinkRect(LinkRect linkRect) { if (_id == "") { _id = linkRect.Id; } else if (_id != "" && _id != linkRect.Id) { ANewZoneMustBeCreated(); } _linkRects.Add(linkRect); DecideIfContinueLinking(); }