Пример #1
0
 static int set_instance(IntPtr L)
 {
     try
     {
         U3DEventFrame.UIManager arg0 = (U3DEventFrame.UIManager)ToLua.CheckUnityObject(L, 2, typeof(U3DEventFrame.UIManager));
         U3DEventFrame.UIManager.instance = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
 static int UnRegistPanelGameObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         U3DEventFrame.UIManager obj = (U3DEventFrame.UIManager)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.UIManager));
         string arg0 = ToLua.CheckString(L, 2);
         obj.UnRegistPanelGameObject(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #3
0
 static int SendMsg(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         U3DEventFrame.UIManager obj  = (U3DEventFrame.UIManager)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.UIManager));
         U3DEventFrame.MsgBase   arg0 = (U3DEventFrame.MsgBase)ToLua.CheckObject(L, 2, typeof(U3DEventFrame.MsgBase));
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.SendMsg(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #4
0
 static int GetGameObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         U3DEventFrame.UIManager obj = (U3DEventFrame.UIManager)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.UIManager));
         string arg0 = ToLua.CheckString(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         UnityEngine.GameObject o = obj.GetGameObject(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #5
0
 static int RegistGameObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         U3DEventFrame.UIManager obj = (U3DEventFrame.UIManager)ToLua.CheckObject(L, 1, typeof(U3DEventFrame.UIManager));
         string arg0 = ToLua.CheckString(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         UnityEngine.GameObject arg2 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 4, typeof(UnityEngine.GameObject));
         obj.RegistGameObject(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #6
0
    static int get_SonMembers(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            U3DEventFrame.UIManager obj = (U3DEventFrame.UIManager)o;
            System.Collections.Generic.Dictionary <string, System.Collections.Generic.Dictionary <string, UnityEngine.GameObject> > ret = obj.SonMembers;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index SonMembers on a nil value" : e.Message));
        }
    }