Пример #1
0
    static int set_Owner(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ScrollObject      obj  = (ScrollObject)o;
            ScrollAreaLimiter arg0 = (ScrollAreaLimiter)ToLua.CheckUnityObject(L, 2, typeof(ScrollAreaLimiter));
            obj.Owner = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Owner on a nil value" : e.Message));
        }
    }
Пример #2
0
    static int get_Owner(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ScrollObject      obj = (ScrollObject)o;
            ScrollAreaLimiter ret = obj.Owner;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Owner on a nil value" : e.Message));
        }
    }