经过一天的尝试,终于确认方案可行,主要代码如下:
using UnityEngine;
using System.IO;
using System.Threading;
using SevenZip;
using Awesome.Net.Compression;
using System.Collections;
using System.Collections.Generic;
public class VersionCheckControl:MonoBehaviour
{
ProgressBar bar;
string[] path;
string dic;
UILabel progress;
UILabel checkVersionLabel;
Dictionary<string, bool> compressDic = new Dictionary<string, bool>();
void Awake()
{
bar = transform.Find ("Progress2").GetComponent<ProgressBar> ();
progress = bar.transform.Find ("Label").GetComponent<UILabel> ();
UILabel label = bar.transform.Find ("Tip").GetComponent<UILabel> ();
label.text = Localization.Get ("810");
checkV