public static void ReloadLua(this LuaEnv self, string luaName, string chunkName = "chunk") { self.SafeDoString(string.Format("package.loaded['{0}'] = nil", luaName), chunkName); self.LoadLua(luaName, chunkName); }
public static void LoadLua(this LuaEnv self, string luaName, string chunkName = "chunk") { self.SafeDoString(string.Format("require('{0}')", luaName), chunkName); }