Esempio n. 1
0
    //获得lua zip文件md5值
    public void GetLuaZipFileMD5(string luaCodeZipFileName, System.Action <string> getFinish)
    {
        Action <byte[]> loadZip = delegate(byte[] data)
        {
            if (data == null)
            {
                string str = string.Format("ResourcesManager.GetLuaZipFileMD5:加载Lua代码文件失败");
                Debug.LogError(str);
                getFinish("");
                return;
            }

            string md5 = MD5Tool.Get(data);
            getFinish(md5);
        };

        StartCoroutine(LoadLuaZipFileImp(luaCodeZipFileName, loadZip));
    }