8,303
社区成员
发帖
与我相关
我的任务
分享
function iter(objectArrary)
local i = -1
return function()
i = i + 1
if i >= objectArrary:count() then
return nil
end
return objectArrary:objectAtIndex(i)
end
end
function scheduleUpdate()
for bullet in iter(BulletLayer.getBulletArray()) do
bullet:boundingBox()
end
end