lua 中点与冒号的区别

function NSceneNpcProxy:PureAddSome(datas)
-- local npcs = {}
local data
for i = 1, #datas do
data = datas[i]
if data ~= nil then
if(data.owner==0) then
--LuaProfiler.Start("zzf2")
tmpNpcs[#tmpNpcs + 1] = self:Add(data)
--LuaProfiler.Stop()
else
tmpArray[#tmpArray + 1] = data
end
end
end

posted on 2016-12-21 14:01  wing931001  阅读(243)  评论(0)    收藏  举报