| | |
| | | m_BossName.text = npcConfig.charName; |
| | | m_BossLevel.text = _level.ToString(); |
| | | m_BossIcon.SetSprite(npcConfig.HeadPortrait); |
| | | if (npcConfig.Realm > 0) |
| | | |
| | | if (m_Realm != null) |
| | | { |
| | | m_Realm.gameObject.SetActive(true); |
| | | var realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(npcConfig.Realm); |
| | | m_Realm.SetSprite(realmConfig.Img); |
| | | } |
| | | else |
| | | { |
| | | m_Realm.gameObject.SetActive(false); |
| | | if (ConfigManager.Instance.ContainKey<RealmConfig>(npcConfig.ClientRealm)) |
| | | { |
| | | m_Realm.gameObject.SetActive(true); |
| | | var realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(npcConfig.ClientRealm); |
| | | m_Realm.SetSprite(realmConfig.Img); |
| | | } |
| | | else |
| | | { |
| | | m_Realm.gameObject.SetActive(false); |
| | | } |
| | | } |
| | | |
| | | surplusSegments = -1; |