public PanelData GetData(int id)
        {
            if (panelDict == null)
            {
                BuildDictionary();
            }
            PanelData pd = null;

            panelDict.TryGetValue(id, out pd);
            return(pd);
        }
 public void SetData(PanelData d)
 {
     //panelSetup.currentSize = d.size;
     SetSizeXY(d.size.x, d.size.y);
     rect.localPosition = d.position;
 }