Lua lua = new Lua();
lua.DoString(“name = ‘yzl’ age = 23 address = ‘nanyang’”);
lua.DoString(“print(name, age, address)”);
lua.DoString(@“for i = 0, 10, 1 do
print(i)
end”);
lua.DoString(@"function Show()
print(‘lua show Function’)
end
Show()
");
lua.DoString(“myArrary = {‘AAA’,‘BBB’,‘CCC’,‘DDD’}”);
lua.DoString(@"for i = 1, table.getn(myArrary), 1 do
print(myArrary[i])
end
");
Console.ReadKey();
C#中调用L
最新推荐文章于 2021-10-28 09:54:00 发布