| | |
| | | [SerializeField] ImageEx m_ImageGoto; |
| | | [SerializeField] Button m_KillRecord; |
| | | [SerializeField] Transform m_SurpassLevel; |
| | | [SerializeField] RectTransform m_NoDamageTip; |
| | | [SerializeField] ToggleButton m_Subscribe; |
| | | |
| | | [SerializeField] RectTransform m_ContainerBoxCollectWeary; |
| | |
| | | |
| | | DisplayItemDropTip(model.selectedBoss); |
| | | DisplayBossBaseInfo(model.selectedBoss); |
| | | DisplayWearyValue(model.selectedBoss); |
| | | DisplaySkillTimes(model.selectedBoss); |
| | | } |
| | | |
| | | private void ShowKillRecords() |
| | |
| | | { |
| | | DisplayItemDropTip(_bossId); |
| | | DisplayBossBaseInfo(_bossId); |
| | | DisplayWearyValue(_bossId); |
| | | DisplaySkillTimes(_bossId); |
| | | } |
| | | |
| | | private void DisplayBossBaseInfo(int _bossId) |
| | |
| | | } |
| | | } |
| | | |
| | | private void DisplayItemDropTip(int _bossId) |
| | | private void DisplayItemDropTip(int bossId) |
| | | { |
| | | var config = DogzDungeonConfig.Get(model.selectedBoss); |
| | | var config = DogzDungeonConfig.Get(bossId); |
| | | switch (config.MonsterType) |
| | | { |
| | | case 1: |
| | | case 2: |
| | | case 3: |
| | | m_NoDamageTip.gameObject.SetActive(true); |
| | | m_SurpassLevel.gameObject.SetActive(false); |
| | | break; |
| | | case 4: |
| | | var npcDropConfig = NPCDropItemConfig.Get(_bossId); |
| | | m_SurpassLevel.gameObject.SetActive(npcDropConfig.MaxLV != 0 && PlayerDatas.Instance.baseData.LV > npcDropConfig.MaxLV); |
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel; |
| | | var npcConfig = NPCConfig.Get(bossId); |
| | | |
| | | if (npcConfig.Realm > realmLevel) |
| | | { |
| | | m_NoDamageTip.gameObject.SetActive(true); |
| | | m_SurpassLevel.gameObject.SetActive(false); |
| | | } |
| | | else |
| | | { |
| | | m_NoDamageTip.gameObject.SetActive(false); |
| | | var dropConfig = NPCDropItemConfig.Get(bossId); |
| | | var noDrop = dropConfig == null || (dropConfig.MaxLV != 0 && PlayerDatas.Instance.baseData.LV > dropConfig.MaxLV); |
| | | m_SurpassLevel.gameObject.SetActive(noDrop); |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | |
| | | private void DisplayWearyValue(int _bossId) |
| | | private void DisplaySkillTimes(int _bossId) |
| | | { |
| | | var config = DogzDungeonConfig.Get(model.selectedBoss); |
| | | switch (config.MonsterType) |