| System/Message/BattleHint.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Message/BattleHintWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | 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; } } }