public static int importWrap(IntPtr L) { string text = string.Empty; text = LuaDLL.lua_tostring(L, 1); text = text.Replace('.', '_'); if (!string.IsNullOrEmpty(text)) { LuaBinder.Bind(L, text); } return(0); }
public static int importWrap(IntPtr L) { string fileName = String.Empty; fileName = LuaDLL.lua_tostring(L, 1); fileName = fileName.Replace('.', '_'); if (!string.IsNullOrEmpty(fileName)) { LuaBinder.Bind(L, fileName); } return(0); }
public void Start() { LuaFileUtil.AddSearchPath(); LuaBinder.Bind(lua); lua.Start(); _loop = GameObject.Find("root/base").AddComponent <LuaLooper>(); _loop.luaState = lua; DoFile("main"); LuaFileUtil.AddLuaPaths(); }