From d037267bed73b7fcdc691697bec96cf3e9329867 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 26 十一月 2018 21:24:52 +0800
Subject: [PATCH] 5038 【1.3】4G环境下,地图分包下载显示优化
---
System/WorldMap/WorldMapAreaBehaviour.cs | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/System/WorldMap/WorldMapAreaBehaviour.cs b/System/WorldMap/WorldMapAreaBehaviour.cs
index 5cb250b..91e7598 100644
--- a/System/WorldMap/WorldMapAreaBehaviour.cs
+++ b/System/WorldMap/WorldMapAreaBehaviour.cs
@@ -100,7 +100,17 @@
if (mapAssetDownLoadProgress != null)
{
mapAssetDownLoadProgress.OnComplete(null);
+ InGameDownLoad.Instance.RegisterMapAssetDownLoadOk(this.m_MapArea.id, () =>
+ {
+ var config = Config.Instance.Get<MapConfig>(this.m_MapArea.id);
+ ConfirmCancel.ShowPopConfirm(
+ "Mail101",
+ Language.Get("LoadMap1", config.Name),
+ () => { model.RequestMapTransport(this.m_MapArea.id); }
+ );
+ });
}
+
StopAllCoroutines();
}
@@ -150,6 +160,7 @@
behaviour.transform.SetParentEx(m_Conainter.transform, Vector3.zero, Vector3.zero, Vector3.one);
}
+ InGameDownLoad.Instance.UnRegisterMapAssetDownLoadOk();
mapAssetDownLoadProgress.mapId = m_MapArea.id;
mapAssetDownLoadProgress.OnComplete(() =>
{
--
Gitblit v1.8.0