diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs index 1f275a13..af86cf8c 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs @@ -72,6 +72,7 @@ namespace GameLogic public const string TtqEffectCreate = "TtqEffectCreate"; public const string SwitchTeamId = "SwitchTeamId"; public const string HuangJinGameEnd = "HuangJinGameEnd"; + public const string GuanJunShiKe = "GuanJunShiKe"; #endregion diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index e9515cd5..ffe4c3a0 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -44,6 +44,7 @@ namespace GameLogic public int m_LiShiShiJianLikeCount = 0; // 历史事件点赞触发条件 public int m_LiShiShiJianLikeCountMax = 200; // 历史事件点赞触发条件最大值 public List sjDatas = new List(); // 历史事件数据 + public bool isGaunJunShiKe = false; // 冠军时刻 public void OnInit() { @@ -696,6 +697,13 @@ namespace GameLogic GameEvent.Send(EventConts.SwitchTeamId); + + // 冠军时刻不在触发这些 + if (isGaunJunShiKe) + { + return; + } + // 触发黄金时代,等待三十秒延迟 isHuangJinShiDai = true; @@ -1042,6 +1050,13 @@ namespace GameLogic // 减少游戏时长 m_GameTimerLen -= Time.deltaTime; + if (m_GameTimerLen <= 60 && !isGaunJunShiKe) + { + // 触发冠军时刻 + isGaunJunShiKe = true; + GameEvent.Send(EventConts.GuanJunShiKe); + } + if (m_GameTimerLen <= 0) { // 游戏结束 diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs index 65751166..fc800a79 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs @@ -537,6 +537,10 @@ namespace GameLogic // 返回格式化的字符串 m_tmpTimer.text = $"{minutes}:{remainingSeconds:D2}"; + + + + } ///