static int Update(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)ToLua.CheckObject <FairyGUI.GoWrapper>(L, 1); FairyGUI.UpdateContext arg0 = (FairyGUI.UpdateContext)ToLua.CheckObject <FairyGUI.UpdateContext>(L, 2); obj.Update(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }