feat(TimeCountDown): 实现倒计时功能
This commit is contained in:
24
Assets/Script/Gameplay/Global/GameFlowManager.cs
Normal file
24
Assets/Script/Gameplay/Global/GameFlowManager.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using Core;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Script.Gameplay.Global
|
||||
{
|
||||
public enum GameState
|
||||
{
|
||||
Boot, // 初始化
|
||||
MainMenu, // 主菜单
|
||||
Playing, // 游戏中
|
||||
Paused, // 暂停
|
||||
GameOver, // 游戏结束
|
||||
Victory // 胜利
|
||||
}
|
||||
|
||||
public class GameFlowManager : MonoSingleton<GameFlowManager>
|
||||
{
|
||||
private void Start()
|
||||
{
|
||||
GameCountdownManager.Instance.StartLevelTimer();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user