| | |
| | | } |
| | | } |
| | | |
| | | if (!_hero.IsIdle() && !_hero.IsCollect() && !(_hero.NextAction == GAStaticDefine.Act_Collect)) |
| | | if (_hero.IsCollect()) |
| | | { |
| | | StopCollect(); |
| | | if (!_hero.IsIdle() && !(_hero.NextAction == GAStaticDefine.Act_Collect)) |
| | | { |
| | | StopCollect(); |
| | | } |
| | | } |
| | | |
| | | if (_hero.SelectTarget != null) |
| | |
| | |
|
| | | private void HandleAutoHazyRegion()
|
| | | {
|
| | | if(!hazyRegionModel.auto)
|
| | | if (!hazyRegionModel.auto)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | |
| | | m_InitHeroStep = 8; |
| | | var mapConfig = MapConfig.Get(PlayerDatas.Instance.baseData.MapID); |
| | | if (mapConfig.CanRide == 1) |
| | | if (mapConfig.CanRide != 1) |
| | | { |
| | | if (apperance.mount != 0) |
| | | { |
| | | var mountModel = ModelCenter.Instance.GetModel<MountModel>(); |
| | | if (mountModel.HorseRidingBool) |
| | | { |
| | | hero.OnHorse(1); |
| | | } |
| | | } |
| | | hero.SwitchHorse(0); |
| | | } |
| | | |
| | | m_InitHeroStep = 9; |
| | |
| | | if (command.exitClientMap)
|
| | | {
|
| | | ClientDungeonStageUtility.RequestExitClientDungeon(); |
| | | MapTransferUtility.Instance.Clear(); |
| | | }
|
| | |
|
| | | if (command.refreshPlayerDatas)
|