| | |
| | | findPreciousModel.bossInfoUpdateEvent -= OnBossInfoUpdate;
|
| | | }
|
| | |
|
| | | protected void DrawBossBaseInfo(string _icon, string _name, int _level, int _realm)
|
| | | protected virtual void DrawBossBaseInfo(string _icon, string _name, int _level, int _realm)
|
| | | {
|
| | | m_Portrait.SetSprite(_icon);
|
| | | m_Portrait.SetNativeSize();
|
| | |
| | |
|
| | | if (m_Realm != null)
|
| | | {
|
| | | if (_realm > 0)
|
| | | if (Config.Instance.ContainKey<RealmConfig>(_realm))
|
| | | {
|
| | | m_Realm.gameObject.SetActive(true);
|
| | | var realmConfig = ConfigManager.Instance.GetTemplate<RealmConfig>(_realm);
|
| | | var realmConfig = Config.Instance.Get<RealmConfig>(_realm);
|
| | | if (realmConfig != null)
|
| | | {
|
| | | m_Realm.SetSprite(realmConfig.Img);
|
| | |
| | | m_Portrait.material = isGray ? m_GrayMaterial : m_NormalMaterial;
|
| | | }
|
| | |
|
| | | protected void UpdateBossRebornCoolDown(bool _isUnLocked)
|
| | | protected virtual void UpdateBossRebornCoolDown(bool _isUnLocked)
|
| | | {
|
| | | if (_isUnLocked)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | m_Selected.gameObject.SetActive(selected);
|
| | | m_BackGround.SetSprite(selected ? "DemonJarSelectFrame" : "DemonJarNormalFrame");
|
| | | //m_BackGround.SetSprite(selected ? "DemonJarSelectFrame" : "DemonJarNormalFrame");
|
| | |
|
| | | var fontPattern = string.Empty;
|
| | | switch (_state)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (isRebornRightNow && !m_RefreshAtOnce.gameObject.activeInHierarchy)
|
| | | if (m_RefreshAtOnce != null)
|
| | | {
|
| | | m_RefreshAtOnce.gameObject.SetActive(true);
|
| | | }
|
| | | else if (!isRebornRightNow && m_RefreshAtOnce.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_RefreshAtOnce.gameObject.SetActive(false);
|
| | | if (isRebornRightNow && !m_RefreshAtOnce.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_RefreshAtOnce.gameObject.SetActive(true);
|
| | | }
|
| | | else if (!isRebornRightNow && m_RefreshAtOnce.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_RefreshAtOnce.gameObject.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|