配置环境:创建C#项目,引入luainterface-1.5.3Built下面的LuaInterface.dll文件和luanet.dll文件。引入命名空间using LuaInterface
代码编写:
Lua lua = new Lua(); lua["name"] = "shirln"; Console.WriteLine(lua["name"]); Console.ReadKey();