| | |
| | | Vector3 heroPrePosition = new Vector3(-999, -8888, 0);
|
| | | int dataMapId = 0;
|
| | | int lineId = 0;
|
| | | bool isShow = false;
|
| | |
|
| | | MapModel model { get { return ModelCenter.Instance.GetModel<MapModel>(); } }
|
| | |
|
| | | public void Init()
|
| | | {
|
| | | isShow = true;
|
| | | m_Map.SetListener(OpenMapWin);
|
| | | m_Daily.SetListener(OpenDailyQuestWin);
|
| | | m_BackPack.SetListener(OpenBackpack);
|
| | |
| | |
|
| | | public void UnInit()
|
| | | {
|
| | | isShow = false;
|
| | | m_Map.RemoveAllListeners();
|
| | | m_Daily.RemoveAllListeners();
|
| | | m_BackPack.RemoveAllListeners();
|
| | |
| | |
|
| | | public void Update()
|
| | | {
|
| | | if (!isShow) return;
|
| | |
|
| | | // 更新地图
|
| | | int curMapID = model.wannaLookLocalMap == 0 ? MapUtility.GetDataMapId() : model.wannaLookLocalMap;
|
| | | if (curMapID != 0 && curMapID != dataMapId)
|