DGJ 1 жил өмнө
parent
commit
74705b321b

+ 5 - 5
Assets/COSScripts/LocalLoadManager.cs

@@ -12,9 +12,9 @@ public class LocalLoadManager : MonoSingleton<LocalLoadManager>
 
     public void LocalLoadMaterial(DownLoadMaterial downloadMaterial)
     {
-        if (dicLoaclData.ContainsKey(downloadMaterial.localLoadPath))
+        if (dicLoaclData.ContainsKey(downloadMaterial.downLoadPath))
         {
-            MsgHandler.SendMsg(downloadMaterial.localLoadPath, new Msg(downloadMaterial.localLoadPath, dicLoaclData[downloadMaterial.localLoadPath]));
+            MsgHandler.SendMsg(downloadMaterial.downLoadPath, new Msg(downloadMaterial.downLoadPath, dicLoaclData[downloadMaterial.downLoadPath]));
         }
         else
             StartCoroutine(DownloadFile(downloadMaterial));
@@ -47,16 +47,16 @@ public class LocalLoadManager : MonoSingleton<LocalLoadManager>
                 // 下载失败 
                 //downLoadState = webRequest.error;
                 isDownLoad = false;
-                MsgHandler.SendMsg(downloadMaterial.localLoadPath, new Msg(downloadMaterial.localLoadPath,null));
+                MsgHandler.SendMsg(downloadMaterial.downLoadPath, new Msg(downloadMaterial.downLoadPath, null));
             }
             else
             {
                 Debug.Log(webRequest.isDone + "    " + webRequest.downloadHandler.data.Length);
                 // Debug.LogError("Download Failed: " + webRequest.error);
 
-                dicLoaclData.Add(downloadMaterial.localLoadPath, webRequest.downloadHandler.data);
+                dicLoaclData.Add(downloadMaterial.downLoadPath, webRequest.downloadHandler.data);
                 isDownLoad = true;
-                MsgHandler.SendMsg(downloadMaterial.localLoadPath, new Msg(downloadMaterial.localLoadPath, webRequest.downloadHandler.data));
+                MsgHandler.SendMsg(downloadMaterial.downLoadPath, new Msg(downloadMaterial.downLoadPath, webRequest.downloadHandler.data));
             }
            
         }