作为lua的新手,目前遇到的第一个小问题,虽然不是个多么深奥复杂的问题,但是给自己开个头吧——记录每一次试错的过程,作为以后的参考;
场景是lua的跨文件调用:
文件1:library.lua
local ecsfunction={
}
function ecsfunction:test()
print("我太帅了")
end
文件2:test.lua
local thisTest=require("library")
if not thisTest then
p