static int get_onDrop(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UGUIEventListener obj = (UGUIEventListener)o; UGUIEventListener.ObjectDelegate ret = obj.onDrop; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onDrop on a nil value")); } }
static int set_onDrop(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UGUIEventListener obj = (UGUIEventListener)o; UGUIEventListener.ObjectDelegate arg0 = (UGUIEventListener.ObjectDelegate)ToLua.CheckDelegate <UGUIEventListener.ObjectDelegate>(L, 2); obj.onDrop = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onDrop on a nil value")); } }