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
浙公网安备 33010602011771号