Ejemplo n.º 1
0
    void OnStart()
    {
        int index = 0;

        foreach (Transform tr in tagLines)
        {
            tr.GetComponent <LineRenderer>().startWidth = lineThickness;
            tr.GetComponent <LineRenderer>().endWidth   = lineThickness;
            PanelControl pc = tr.GetComponent <PanelControl>();
            pc.SetTagLabel(tagParts[index].Label);
            pc.followStartPos = tagParts[index].start;
            pc.followEndPos   = tagParts[index].end;
            index++;
        }
    }