补充冠军时刻
This commit is contained in:
parent
165aeb9d6d
commit
80d754f574
@ -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
|
||||
|
||||
|
||||
|
@ -44,6 +44,7 @@ namespace GameLogic
|
||||
public int m_LiShiShiJianLikeCount = 0; // 历史事件点赞触发条件
|
||||
public int m_LiShiShiJianLikeCountMax = 200; // 历史事件点赞触发条件最大值
|
||||
public List<SjData> sjDatas = new List<SjData>(); // 历史事件数据
|
||||
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)
|
||||
{
|
||||
// 游戏结束
|
||||
|
@ -537,6 +537,10 @@ namespace GameLogic
|
||||
|
||||
// 返回格式化的字符串
|
||||
m_tmpTimer.text = $"{minutes}:{remainingSeconds:D2}";
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user