| | |
| | | [SerializeField] BossIntroduceBehaviour m_BossIntroduce; |
| | | |
| | | [SerializeField] Button m_Goto; |
| | | [SerializeField] ImageEx m_ImageGoto; |
| | | [SerializeField] Button m_KillRecord; |
| | | [SerializeField] Transform m_SurpassLevel; |
| | | [SerializeField] RectTransform m_NoDamageTip; |
| | |
| | | private void GotoKillBoss() |
| | | { |
| | | var error = 0; |
| | | if ( model.CanEnter(out error) ) |
| | | if (model.CanEnter(out error)) |
| | | { |
| | | if (PlayerDatas.Instance.baseData.MapID == CrossServerBossModel.DATA_MAPID) |
| | | { |
| | |
| | | m_Subscribe.isOn = findPreciousModel.IsBossSubscribed(_bossId); |
| | | break; |
| | | } |
| | | |
| | | DisplayGotoKillButton(model.selectedBoss); |
| | | DisplaySubscribe(model.selectedBoss); |
| | | } |
| | | |
| | | private void DisplayItemDropTip(int bossId) |
| | |
| | | case 1: |
| | | case 2: |
| | | case 3: |
| | | m_NoDamageTip.gameObject.SetActive(true); |
| | | m_NoDamageTip.gameObject.SetActive(false); |
| | | m_SurpassLevel.gameObject.SetActive(false); |
| | | break; |
| | | case 4: |
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel; |
| | | var npcConfig = NPCConfig.Get(bossId); |
| | | |
| | | if (npcConfig.Realm > realmLevel) |
| | | if (!findPreciousModel.IsRealmEnoughToKillBoss(bossId)) |
| | | { |
| | | m_NoDamageTip.gameObject.SetActive(true); |
| | | m_SurpassLevel.gameObject.SetActive(false); |
| | |
| | | } |
| | | } |
| | | |
| | | private void DisplayGotoKillButton(int bossId) |
| | | { |
| | | var config = CrossServerBossConfig.Get(model.selectedBoss); |
| | | var isUnlock = config.MonsterType != 4 || findPreciousModel.IsBossUnlock(model.selectedBoss); |
| | | m_Goto.gameObject.SetActive(isUnlock); |
| | | } |
| | | |
| | | private void DisplaySubscribe(int bossId) |
| | | { |
| | | var isUnLocked = findPreciousModel.IsBossUnlock(bossId); |
| | | m_Subscribe.gameObject.SetActive(isUnLocked); |
| | | if (isUnLocked) |
| | | { |
| | | m_Subscribe.isOn = findPreciousModel.IsBossSubscribed(bossId); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |