示例#1
0
    static int set_Cube(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            BoxScrollObject    obj  = (BoxScrollObject)o;
            UnityEngine.Bounds arg0 = ToLua.ToBounds(L, 2);
            obj.Cube = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Cube on a nil value" : e.Message));
        }
    }
示例#2
0
    static int get_bounds(IntPtr L)
    {
        object o = null;

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