Exemple #1
0
 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);
 }
Exemple #2
0
 public static void LoadLua(this LuaEnv self, string luaName, string chunkName = "chunk")
 {
     self.SafeDoString(string.Format("require('{0}')", luaName), chunkName);
 }