怎么调用另外一个lua文件中的函数?
lua吧
全部回复
仅看楼主
level 2
🐒大黄蜂
楼主
怎么调用另外一个lua文件中的函数?
2018年11月02日 12点11分
1
level 2
🐒大黄蜂
楼主
比如,A文件有一个函数
Function a()
If ……then
Return false
Else
Return true
End
End
,要在b文件多次调用a(),怎么写?
2018年11月02日 12点11分
2
level 6
☞二哈☜
require 文件名 --工程路径,不用写文件后缀名。
2018年11月02日 15点11分
3
🐒大黄蜂
2018年11月04日 09点11分
level 11
🌟枫🌟
这个说法不太对吧,只加载一个函数应该做不到,只能加载一整个文件?
2018年11月04日 15点11分
4
1