| | |
| | | [SerializeField] Slider m_SliderForeground; |
| | | |
| | | [SerializeField] Text m_Surplus; |
| | | [SerializeField] Image m_Realm; |
| | | [SerializeField] Text m_BossName; |
| | | [SerializeField] Text m_BossLevel; |
| | | |
| | |
| | | m_BossName.text = npcConfig.charName; |
| | | m_BossLevel.text = _level.ToString(); |
| | | m_BossIcon.SetSprite(npcConfig.HeadPortrait); |
| | | if (npcConfig.Realm > 0) |
| | | { |
| | | m_Realm.gameObject.SetActive(true); |
| | | var realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(npcConfig.Realm); |
| | | m_Realm.SetSprite(realmConfig.Img); |
| | | } |
| | | else |
| | | { |
| | | m_Realm.gameObject.SetActive(false); |
| | | } |
| | | |
| | | surplusSegments = -1; |
| | | totalSegments = npcConfig.LifeBarCount; |