public UIGrid.OnReposition UIGrid_OnReposition(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UIGrid.OnReposition fn = delegate() { }; return(fn); } if (!flag) { UIGrid_OnReposition_Event target = new UIGrid_OnReposition_Event(func); UIGrid.OnReposition d = target.Call; target.method = d.Method; return(d); } else { UIGrid_OnReposition_Event target = new UIGrid_OnReposition_Event(func, self); UIGrid.OnReposition d = target.CallWithSelf; target.method = d.Method; return(d); } }
public static Delegate UIGrid_OnReposition(LuaFunction func, LuaTable self, bool flag) { if (func == null) { UIGrid.OnReposition fn = delegate() { }; return fn; } if(!flag) { UIGrid_OnReposition_Event target = new UIGrid_OnReposition_Event(func); UIGrid.OnReposition d = target.Call; target.method = d.Method; return d; } else { UIGrid_OnReposition_Event target = new UIGrid_OnReposition_Event(func, self); UIGrid.OnReposition d = target.CallWithSelf; target.method = d.Method; return d; } }