示例#1
0
        public void Make(string name, GameUIComponent ui)
        {
            ui.LogicHandler = this;
            bool bFind = ui.Init(name, root);

            if (bFind)
            {
                AddComponent(ui);
            }
        }
示例#2
0
 public static void Make(GameUIComponent com, string id, GameObject root, UILogicBase logic, GameUIComponent parent)
 {
     if (parent != null)
     {
         parent.children.Add(com);
     }
     if (logic != null)
     {
         com.LogicHandler = logic;
         logic.AddComponent(com);
     }
     com.Init(id, root);
 }