lua代码
Test = {}
function ShowText( str )
if str == nil then
return
end
print("我来自Test.lua"..str)
end
C#代码
lua.DoFile( "Test.lua" );
LuaFunction func = lua.GetFunction( "ShowText" );
func.BeginPCall();
func.Push("=====Hello World======");
func.PCall();
func.EndPCall();
func = null;