From c90cdd78c2bf8bcfa25cec7432a5876f6085ecfb Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 01 二月 2019 11:18:37 +0800
Subject: [PATCH] 3335 切换地图逻辑重构。
---
Fight/MapTransferUtility.cs | 37 ++++---------------------------------
1 files changed, 4 insertions(+), 33 deletions(-)
diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index f69923f..a56fc3c 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -19,14 +19,11 @@
Fight,
}
private E_MapTransferDoType m_MapTransferType;
- public E_MapTransferDoType MapTransferDoType
- {
- get
- {
+ public E_MapTransferDoType MapTransferDoType {
+ get {
return m_MapTransferType;
}
- set
- {
+ set {
m_MapTransferType = value;
#if UNITY_EDITOR
// Debug.LogFormat("璁剧疆鏂瑰紡: {0}", m_MapTransferType);
@@ -125,8 +122,7 @@
#endregion
#region npc
- public int NpcID
- {
+ public int NpcID {
get; set;
}
#endregion
@@ -493,11 +489,6 @@
_model.RequestMapTransport(_npcLocation.mapId);
m_SwitchMapFinished = false;
m_MapID = _npcLocation.mapId;
- MapResourcesConfig _mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_npcLocation.mapId, 0);
- if (_mapResConfig != null)
- {
- LoadingWin.targetMapResId = _mapResConfig.ID;
- }
}
// 鎵句笉鍒版垨鑰呮槸鏈湴鍥�
// 鎵句笉鍒板彲鑳芥槸瀹㈡埛绔璞�,涔熷彲鑳芥槸閰嶇疆涓嶅瓨鍦�
@@ -731,15 +722,6 @@
SysNotifyMgr.Instance.ShowTip("PK_Leave");
return;
}
- MapResourcesConfig _config = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(npcLocation.mapId, 0);
- if (_config != null)
- {
- LoadingWin.targetMapResId = _config.ID;
- }
- else
- {
- LoadingWin.targetMapResId = 1;
- }
}
_hero.Behaviour.StopHandupAI(true);
@@ -799,16 +781,6 @@
SysNotifyMgr.Instance.ShowTip("Map_Delivery");
return;
}
-
- MapResourcesConfig _config = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapID, 0);
- if (_config != null)
- {
- LoadingWin.targetMapResId = _config.ID;
- }
- else
- {
- LoadingWin.targetMapResId = 1;
- }
}
_hero.Behaviour.StopHandupAI(true);
@@ -826,7 +798,6 @@
if (!AssetSource.sceneFromEditor)
{
- var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapId, 0);
var assetValid = AssetVersionUtility.IsSceneAssetValid(mapId, 0);
if (!assetValid)
{
--
Gitblit v1.8.0