少年修仙传客户端代码仓库
client_linchunjie
2018-09-14 a0ede150686a218c92b901b1f20aef12a9913890
System/FindPrecious/FindPreciousBossBriefInfoBehaviour.cs
@@ -83,7 +83,7 @@
            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();
@@ -92,10 +92,10 @@
            if (m_Realm != null)
            {
                if (ConfigManager.Instance.ContainKey<RealmConfig>(_realm))
                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);
@@ -134,7 +134,7 @@
            m_Portrait.material = isGray ? m_GrayMaterial : m_NormalMaterial;
        }
        protected void UpdateBossRebornCoolDown(bool _isUnLocked)
        protected virtual void UpdateBossRebornCoolDown(bool _isUnLocked)
        {
            if (_isUnLocked)
            {
@@ -224,13 +224,16 @@
                }
            }
            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);
                }
            }
        }