Lua是什么意思?
我已经看到角色’#’被添加到变量的前面很多在Lua,我只是想知道它是做什么的?我在这里找到了一个例子.
-- sort AIs in currentlevel table.sort(level.ais,function(a,b) return a.y < b.y end) local curAIIndex = 1 local maxAIIndex = #level.ais for i = 1,#currentLevel+maxAIIndex do if level.ais[curAIIndex].y+sprites.monster:getHeight() < currentLevel[i].lowerY then table.insert(currentLevel,i,level.ais[curAIIndex]) curAIIndex = curAIIndex + 1 if curAIIndex > maxAIIndex then break end end end 道歉如果这已经被问到,我已经在互联网上搜索了很多,但我似乎没有找到答案.提前致谢! 解决方法
那就是
length operator:
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |