static int set_onScrollbarChanged(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UGUIEventListener obj = (UGUIEventListener)o; UGUIEventListener.FloatDelegate arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (UGUIEventListener.FloatDelegate)ToLua.CheckObject(L, 2, typeof(UGUIEventListener.FloatDelegate)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(UGUIEventListener.FloatDelegate), func) as UGUIEventListener.FloatDelegate; } obj.onScrollbarChanged = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onScrollbarChanged on a nil value" : e.Message)); } }
static int get_onScrollbarChanged(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UGUIEventListener obj = (UGUIEventListener)o; UGUIEventListener.FloatDelegate ret = obj.onScrollbarChanged; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index onScrollbarChanged on a nil value" : e.Message)); } }