【发布时间】:2016-08-26 17:48:40
【问题描述】:
在 Lua 中跨文件拆分单个类的多个函数的正确方法是什么?
在以下示例中,我想将数学和拼写函数拆分到单独的文件中。
CardsScene = Core.class(Sprite)
function CardsScene:basicMathInit()
end
function CardsScene:basicMathIdle()
end
function CardsScene:basicMathAnswer()
end
function CardsScene:basicSpellingInit()
end
function CardsScene:basicSpellingIdle()
end
function CardsScene:basicSpellingAnswer()
end
【问题讨论】:
标签: lua