function UIBagController:ClearGoods( )
for i=,#self.itemArr do
print("=======ClearGoods======" .. i)
if self.itemArr[i] ~= nil then
self.itemArr[i]:removeFromParent();
end
end
self.itemArr = nil;
self.itemArr = {};
end
function UIBagController:ClearGoods( )
for i=,#self.itemArr do
print("=======ClearGoods======" .. i)
if self.itemArr[i] ~= nil then
self.itemArr[i]:removeFromParent();
end
end
self.itemArr = nil;
self.itemArr = {};
end