|
@@ -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>
|
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
- 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));
|
|
|
}
|
|
|
|
|
|
}
|