| | |
| | | { |
| | | if (target) |
| | | { |
| | | transform.position = target.position; |
| | | var _y = transform.position.y; |
| | | transform.position = new Vector3(target.position.x, _y, target.position.z); |
| | | } |
| | | } |
| | | } |
| | |
| | | using UnityEngine;
|
| | |
|
| | | public class DTCA125_tagMCChangeMapFail : DtcBasic
|
| | | { |
| | | |
| | | {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | {
|
| | | base.Done(vNetPack);
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | MapTransferUtility.Instance.CheckMap(PlayerDatas.Instance.baseData.MapID, true);
|
| | | MapTransferUtility.Instance.Clear();
|
| | |
|
| | | MapTransferUtility.Instance.lastMoveToWorldBossTime = 0;
|
| | | MapTransferUtility.Instance.lastMoveToWorldBossNpcID = 0;
|
| | |
| | | WindowCenter.Instance.Close<LoadingWin>();
|
| | |
|
| | | GA_Hero.s_MapSwitching = false;
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
| | | private bool m_SwitchMapFinished = true;
|
| | | private int m_MapID;
|
| | |
|
| | | public void CheckMap(int mapID)
|
| | | public void CheckMap(int mapID, bool force = false)
|
| | | {
|
| | | if (m_MapID == mapID)
|
| | | if (m_MapID == mapID || force)
|
| | | {
|
| | | m_SwitchMapFinished = true;
|
| | | }
|