public SelectObject(string imageFileName, string text, Action onClick) { ButtonObject bo = new ButtonObject(imageFileName, text, onClick); Go = bo.Go; //加入Layout LayoutElement le = Go.AddComponent<LayoutElement>(); le.preferredHeight = _preferredHeight; }
public SelectObject(string imageFileName, string text, Action onClick) { ButtonObject bo = new ButtonObject(imageFileName, text, onClick); Go = bo.Go; //加入Layout LayoutElement le = Go.AddComponent <LayoutElement>(); le.preferredHeight = _preferredHeight; }