private void InitLua() { m_lua = new LuaEx(); string luafile = Application.StartupPath + "\\lua.lua"; if (!File.Exists(luafile)) { return; } m_lua.DoFile(luafile); LuaFunction fun = m_lua.GetFunction("transform"); if (fun != null) { object[] retobjs = fun.Call(luafile); } }
private void InitLua() { m_lua = new LuaEx(); string luafile = Application.StartupPath + "\\lua.lua"; if (!File.Exists(luafile)) return; m_lua.DoFile(luafile); LuaFunction fun = m_lua.GetFunction("transform"); if (fun != null) { object[] retobjs = fun.Call(luafile); } }