Exemplo n.º 1
0
        public void Start()
        {
            CheckVersion = new CheckVersionState(this);
            CheckMd5     = new CheckMd5State(this);
            DownloadRes  = new DownloadResState(this);

            CheckVersion.Start();
        }
Exemplo n.º 2
0
        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);
        }