Esempio n. 1
0
 static int getv(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.MonoTable           obj  = (UI.MonoTable)ToLua.CheckObject(L, 1, typeof(UI.MonoTable));
         string                 arg0 = ToLua.CheckString(L, 2);
         UnityEngine.GameObject o    = obj.getv(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 2
0
    static int set_ps(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.MonoTable         obj  = (UI.MonoTable)o;
            UI.MonoTable.Param[] arg0 = ToLua.CheckObjectArray <UI.MonoTable.Param>(L, 2);
            obj.ps = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ps on a nil value" : e.Message));
        }
    }
Esempio n. 3
0
    static int get_ps(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.MonoTable         obj = (UI.MonoTable)o;
            UI.MonoTable.Param[] ret = obj.ps;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ps on a nil value" : e.Message));
        }
    }