static int GetAttachFormulaItem(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); AbilityBase obj = (AbilityBase)ToLua.CheckObject(L, 1, typeof(AbilityBase)); IFormulaItem o = obj.GetAttachFormulaItem(); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }