I have some problems with C# luainterface library:
1. So I load a script and extract its functions like that:
LuaFunction function = lua.GetFunction("Update");
But what if I load two different scripts that contains functions with the same name. How to extract two different functions with the same name from script1 and script2?
2. If I load functions into memory, is it possible to dispose a specific one, not all functions?
3. When I use Lua.DoFile method I want to execute specific function from the file. Any ideas how to do that?
Edit
2. I found, that I can do something like this
string f = @"
function hh()
end";
var result = lua.DoString(f)[0] as LuaFunction;
but for some reason I get null exception. Any ideas why?