Пример #1
0
    static int set_LuaUIComArray(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.UIModule.LuaUIPanel.LuaUIComArray");
#endif
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.UIModule.LuaUIPanel obj  = (Framework.UIModule.LuaUIPanel)o;
            Framework.UIModule.LuaUICom[] arg0 = ToLua.CheckObjectArray <Framework.UIModule.LuaUICom>(L, 2);
            obj.LuaUIComArray = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaUIComArray on a nil value"));
        }
    }
Пример #2
0
    static int get_LuaUITemplateArray(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.UIModule.LuaUIPanel.LuaUITemplateArray");
#endif
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.UIModule.LuaUIPanel      obj = (Framework.UIModule.LuaUIPanel)o;
            Framework.UIModule.LuaUITemplate[] ret = obj.LuaUITemplateArray;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaUITemplateArray on a nil value"));
        }
    }