Exemple #1
0
 protected override void OnInit()
 {
     if (callback != null)
     {
         callback.OnInit();
     }
 }
Exemple #2
0
        protected override void OnInit()
        {
            base.OnInit();
            if (mLuatable != null)
            {
                LuaTable objs  = LuaMgr.Instance.mLua.NewTable();
                LuaTable ctrls = LuaMgr.Instance.mLua.NewTable();
                mLuatable.Set("Objs", objs);
                mLuatable.Set("ctrls", ctrls);

                foreach (KeyValuePair <string, FairyGUI.GObject> kv in this.UIObjs)
                {
                    objs.Set(kv.Key, kv.Value);
                }

                foreach (KeyValuePair <string, FairyGUI.Controller> kv in this.UICtrls)
                {
                    ctrls.Set(kv.Key, kv.Value);
                }
            }
            if (callBack != null)
            {
                callBack.OnInit();
            }
        }