예제 #1
0
 void Awake()
 {
     savePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "TestDownLoad");
     Timer.IntializeDriver();
     Loom.Initialize();
     DownLoader = new HttpDownLoader();
     DownLoader.OnDownLoadCompleted.AddListener(() =>
     {
         this.finish.text = "下载完成!";
     });
     DownLoader.OnDownLoadUpdate.AddListener(v =>
     {
         this.update.text = string.Format("下载进度:{0} %", (v * 100).ToString("f2"));
     });
 }
예제 #2
0
 private void Awake()
 {
     Timer.IntializeDriver();
 }
예제 #3
0
 private void Awake()
 {
     Timer.IntializeDriver(); //首次初始化不能放在非主线程内。
     Loom.Initialize();       //首次初始化不能放在非主线程内。
 }