Files
2025TapTapGameJam/Assets/Script/Gameplay/Global/GameFlowManager.cs

32 lines
724 B
C#

using System;
using Core;
using Script.Gameplay.Input;
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();
GameCountdownManager.Instance.OnFinish.AddListener(RestartGame);
}
public void RestartGame()
{
GameManager.Instance.ReStartGame();
}
}
}