| | |
| | | public static ushort clientMapId { get; private set; }
|
| | | public static Dungeon dungeonInfo { get; set; } |
| | | |
| | | static bool exitClientDungeonFlag = false; |
| | | static bool exitClientDungeonSymbol = false; |
| | | |
| | | const string OFFLINEMAPRECORD = "OfflineMapRecord"; |
| | | |
| | |
| | |
|
| | | MapTransferUtility.Instance.Clear();
|
| | |
|
| | | SetClientDungeon(true, (ushort)mapId);
|
| | | SetClientDungeon(true, (ushort)clientMapId);
|
| | | StageLoad.Instance.PushSceneLoadCommand(new StageLoad.StageLoadCommand()
|
| | | {
|
| | | toMapId = mapId,
|
| | | toMapId = clientMapId,
|
| | | toLineId = 0,
|
| | | needEmpty = true,
|
| | | needLoadResource = true,
|
| | |
| | | });
|
| | |
|
| | | PlayerDatas.Instance.baseData.mainServerMapIdRecord = PlayerDatas.Instance.baseData.MapID;
|
| | | PlayerDatas.Instance.baseData.MapID = (ushort)mapId;
|
| | | PlayerDatas.Instance.baseData.MapID = (ushort)clientMapId;
|
| | | var attackMode = new C030A_tagCChangeAttackMode();
|
| | | attackMode.Mode = (byte)E_AttackMode.Peace;
|
| | | GameNetSystem.Instance.PushPackage(attackMode, ServerType.Main);
|
| | |
| | | PlayerDatas.Instance.extersion.pkState = 0;
|
| | | ModelCenter.Instance.GetModel<DungeonModel>().ResetBufData();
|
| | |
|
| | | exitClientDungeonFlag = true;
|
| | | exitClientDungeonSymbol = true;
|
| | |
|
| | | PlayerDatas.Instance.baseData.MapID = PlayerDatas.Instance.baseData.mainServerMapIdRecord;
|
| | | StageLoad.Instance.PushSceneLoadCommand(new StageLoad.StageLoadCommand()
|
| | |
| | | |
| | | private static void OnStageLoadFinish()
|
| | | {
|
| | | if (exitClientDungeonFlag)
|
| | | if (exitClientDungeonSymbol)
|
| | | {
|
| | | RequestExitClientDungeon();
|
| | | }
|
| | |
|
| | | exitClientDungeonFlag = false;
|
| | | exitClientDungeonSymbol = false;
|
| | | }
|
| | |
|
| | | private static void Reset() |