chore():整理了一下文件夹和玩家的血量逻辑
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Core;
|
||||
using Script.Gameplay.Input;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Script.Gameplay.Global
|
||||
@@ -19,6 +20,13 @@ namespace Script.Gameplay.Global
|
||||
private void Start()
|
||||
{
|
||||
GameCountdownManager.Instance.StartLevelTimer();
|
||||
GameCountdownManager.Instance.OnFinish.AddListener(RestartGame);
|
||||
}
|
||||
|
||||
public void RestartGame()
|
||||
{
|
||||
GameManager.Instance.ReStartGame();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user