Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }