摘要:
添加空物体,增加layout组件 阅读全文
posted @ 2020-09-29 20:04
流星曳尾
阅读(327)
评论(0)
推荐(0)
摘要:
rt 阅读全文
posted @ 2020-09-29 20:01
流星曳尾
阅读(952)
评论(0)
推荐(0)
摘要:
--module.lua module = {} module.num = 13 module.f1 = function (a,b) return a + bend --test.lua require('module') print(module.f1(5,6)) --11 阅读全文
posted @ 2020-09-29 15:09
流星曳尾
阅读(292)
评论(0)
推荐(0)
摘要:
tab = {'sss',123,'sswg'} print(table.concat(tab,',')) --sss,123,sswg 阅读全文
posted @ 2020-09-29 14:57
流星曳尾
阅读(445)
评论(0)
推荐(0)
摘要:
a = {key = 'ssss',1,2,3} for i=1,5 do print(a[i])end --[[123nilnil--]] print() for i,v in ipairs(a) do print(v)end --[[123--]] print() for k,v in pair 阅读全文
posted @ 2020-09-29 14:34
流星曳尾
阅读(119)
评论(0)
推荐(0)
摘要:
print('aaa\'sss\'bbb') --aaa'sss'bbb 阅读全文
posted @ 2020-09-29 14:13
流星曳尾
阅读(1032)
评论(0)
推荐(0)
摘要:
a = 3 if not a == 4 then print('1')else print('2')end --2 阅读全文
posted @ 2020-09-29 13:58
流星曳尾
阅读(1047)
评论(0)
推荐(0)
摘要:
rt 阅读全文
posted @ 2020-09-29 13:51
流星曳尾
阅读(7553)
评论(0)
推荐(0)
摘要:
function sum(...) res = 0 tab = {...} for i,v in ipairs(tab) do res = res + v end return resend print(sum(2,65,3))--70 阅读全文
posted @ 2020-09-29 13:41
流星曳尾
阅读(1089)
评论(0)
推荐(0)
摘要:
rt 阅读全文
posted @ 2020-09-29 13:28
流星曳尾
阅读(769)
评论(0)
推荐(0)