public void Awake() { DateTime time = DateTime.Now; lua = new Lua(); Debug.WriteLine("hello"); //lua.DoString("Bundle = luanet.import_type \"Test.Bundle\";a = Bundle();a:test(function(s) return s; end)"); //UniLuaInterface.LuaTable table = (UniLuaInterface.LuaTable)(lua.DoFile("framework/main.lua")[0]); //((UniLuaInterface.LuaFunction)table["awake"]).Call(); lua.DoFile("test3.lua"); lua.CallFunction("Task"); Debug.WriteLine("use " + (DateTime.Now - time).ToString()); }