少年修仙传客户端代码仓库
client_linchunjie
2018-10-29 442b7fe4c0aeebdef5aae53267ec2309d55a4b5e
2287 【1.2】上古战场优化(添加特效)
2个文件已修改
21 ■■■■ 已修改文件
System/Message/BattleHint.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/BattleHintWin.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/BattleHint.cs
@@ -30,7 +30,7 @@
        public event Action battleHintUpdate;
        public event Action evenKillUpdate;
        Queue<int> battleHints = new Queue<int>();
        List<int> battleHints = new List<int>();
        Queue<string> evenKills = new Queue<string>();
        int ancientKing = 0;
@@ -77,7 +77,11 @@
        public void Receive(int ancientType)
        {
            battleHints.Enqueue(ancientType);
            if (battleHints.Contains(ancientType))
            {
                return;
            }
            battleHints.Add(ancientType);
            if (!WindowCenter.Instance.IsOpen<BattleHintWin>())
            {
                WindowCenter.Instance.Open<BattleHintWin>();
@@ -128,7 +132,8 @@
            ancientType = 0;
            if (battleHints.Count > 0)
            {
                ancientType = battleHints.Dequeue();
                ancientType = battleHints[0];
                battleHints.RemoveAt(0);
                return true;
            }
            return false;
System/Message/BattleHintWin.cs
@@ -88,21 +88,25 @@
                m_ContainerKing.gameObject.SetActive(false);
                m_ContainerEnemy.gameObject.SetActive(false);
                m_ContainerAncientRemind.gameObject.SetActive(false);
                m_ContainerBattleHint.gameObject.SetActive(true);
                switch (ancientType)
                {
                    case 1:
                        m_ContainerKing.gameObject.SetActive(true);
                        m_BattleHintTween.SetEndState();
                        OnBattleHintTweenComplete();
                        break;
                    case 2:
                        m_ContainerEnemy.gameObject.SetActive(true);
                        m_BattleHintTween.SetEndState();
                        OnBattleHintTweenComplete();
                        break;
                    case 3:
                        m_ContainerAncientRemind.gameObject.SetActive(true);
                        break;
                }
                m_ContainerBattleHint.gameObject.SetActive(true);
                m_BattleHintTween.SetStartState();
                m_BattleHintTween.Play(OnBattleHintTweenComplete);
                        break;
                }
            }
        }