static int UpdateControlBind(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         CFramework.LuaComponent obj = (CFramework.LuaComponent)ToLua.CheckObject <CFramework.LuaComponent>(L, 1);
         obj.UpdateControlBind();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #2
0
        public Transform AddChild(Transform parent, Transform go, string preStr = null)
        {
            DebugManager.Log("AddChild:" + go.name + "," + preStr);
            if (preStr != null)
            {
                go.name = preStr + "_" + go.name;
                FormatChildName(go, preStr);
            }

            go.transform.parent = parent.transform;

            initView(go);

            LuaComponent luaComponent = _uiRoot.GetComponent <LuaComponent>();

            luaComponent.UpdateControlBind();

            return(go);
        }