Esempio n. 1
0
        public object[] RunScript(string scriptAssetpath)
        {
            TextAsset luaText = ABResources.Load <TextAsset>(scriptAssetpath);

            //Debug.LogFormat("LuaVM RunScript luaText:\n{0}", luaText.text);
            return(DoString(luaText.bytes, scriptAssetpath));
        }
Esempio n. 2
0
 public LuaVM()
 {
     this.AddLoader((ref string filepath) =>
     {
         //Debug.LogFormat("LuaVM Load filepath:{0}", filepath);
         TextAsset luaText = ABResources.Load <TextAsset>(filepath);
         //Debug.LogFormat("LuaVM Load file content:\n{0}", luaText.text);
         return(luaText.bytes);
     });
 }