Пример #1
0
    /// <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();
        }
    }
Пример #2
0
    public void AddLinkRect(LinkRect linkRect)
    {
        if (_id == "")
        {
            _id = linkRect.Id;
        }
        else if (_id != "" && _id != linkRect.Id)
        {
            ANewZoneMustBeCreated();
        }

        _linkRects.Add(linkRect);

        DecideIfContinueLinking();
    }