public void Start() { CheckVersion = new CheckVersionState(this); CheckMd5 = new CheckMd5State(this); DownloadRes = new DownloadResState(this); CheckVersion.Start(); }
public ResUpdater(string[] hosts, int thread, Reporter reporter, StartCoroutineFunc startCoroutine) { downloader = new Downloader(hosts, thread, Application.persistentDataPath, DownloadDone); Reporter = reporter; StartCoroutine = startCoroutine; CheckVersion = new CheckVersionState(this); CheckMd5 = new CheckMd5State(this); DownloadRes = new DownloadResState(this); }