少年修仙传客户端代码仓库
client_linchunjie
2019-04-27 5ff445145ac949a8c040041233dffa152f35bcc5
3335 缥缈仙域添加宝藏特效
2个文件已修改
17 ■■■■■ 已修改文件
System/HazyRegion/HazyRegionIncidentBehaviour.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionIncidentPanel.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/HazyRegion/HazyRegionIncidentBehaviour.cs
@@ -33,6 +33,9 @@
        [SerializeField] Text m_PlayerCount;
        [SerializeField] Text m_RebornTime;
        [Header("宝藏")]
        [SerializeField] UIEffect m_TitleEffect;
        public UIAlphaTween alphaTween { get { return m_AlphaTween; } }
        public UILinerMove linerMove { get { return m_LinerMove; } }
@@ -98,6 +101,14 @@
            findPreciousModel.bossInfoUpdateEvent += BossInfoUpdateEvent;
            hazyDemonKingModel.onPlayerCountRefresh -= OnPlayerCountRefresh;
            hazyDemonKingModel.onPlayerCountRefresh += OnPlayerCountRefresh;
            m_TitleEffect.gameObject.SetActive(false);
            switch (incidentType)
            {
                case HazyRegionIncidentType.Precious:
                    m_TitleEffect.gameObject.SetActive(true);
                    break;
            }
        }
        void DisplayBase()
System/HazyRegion/HazyRegionIncidentPanel.cs
@@ -85,6 +85,12 @@
        {
            var lhs_config = HazyRegionConfig.Get(lhs);
            var rhs_config = HazyRegionConfig.Get(rhs);
            var lhs_precious = lhs_config.incidentType == (int)HazyRegionIncidentType.Precious;
            var rhs_precious = rhs_config.incidentType == (int)HazyRegionIncidentType.Precious;
            if (lhs_precious != rhs_precious)
            {
                return -lhs_precious.CompareTo(rhs_precious);
            }
            if (lhs_config.incidentType != rhs_config.incidentType)
            {
                return lhs_config.incidentType.CompareTo(rhs_config.incidentType);