| | |
| | |
|
| | | public JobSetupConfig JobSetup { get; protected set; }
|
| | |
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | |
|
| | | public override int NextAction
|
| | | {
|
| | | get
|
| | |
| | | MovingState = E_MovingState.Normal;
|
| | |
|
| | | SystemSetting.Instance.qualityLevelChangeEvent += OnGameQualityChange;
|
| | | dungeonModel.updateMissionEvent += CheckAncientHeadUp;
|
| | | base.OnInit(package);
|
| | | }
|
| | |
|
| | |
| | | JobSetup = null;
|
| | |
|
| | | SystemSetting.Instance.qualityLevelChangeEvent -= OnGameQualityChange;
|
| | | dungeonModel.updateMissionEvent -= CheckAncientHeadUp;
|
| | |
|
| | | base.OnUnit();
|
| | | }
|
| | |
| | | protected override void OnLateUpdate()
|
| | | {
|
| | | UpdateRush();
|
| | | }
|
| | |
|
| | | public void CheckAncientHeadUp()
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.MapID == 31160)
|
| | | {
|
| | | var help = dungeonModel.mission;
|
| | | SwitchAncientKing(help.topPlayerID == ServerInstID);
|
| | | SwitchAncientEnemy(help.enemyID == ServerInstID && ServerInstID != PlayerDatas.Instance.baseData.PlayerID);
|
| | | }
|
| | | else
|
| | | {
|
| | | SwitchAncientKing(false);
|
| | | SwitchAncientEnemy(false);
|
| | | }
|
| | | }
|
| | |
|
| | | #region 装备穿戴相关
|
| | |
| | | m_HeadUpName.SetFairyLeague(on, ActorInfo.faction);
|
| | | }
|
| | |
|
| | | public void SwitchAncientKing(bool on)
|
| | | {
|
| | | if (m_HeadUpName == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | m_HeadUpName.SetAncientKing(on);
|
| | | }
|
| | |
|
| | | public void SwitchAncientEnemy(bool on)
|
| | | {
|
| | | if (m_HeadUpName == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | m_HeadUpName.SetAncientEnemy(on);
|
| | | }
|
| | |
|
| | | public virtual void SwitchYellowName(bool on)
|
| | | {
|
| | | if (m_HeadUpName == null)
|