Add BeatPulseController for music synchronization and event handling
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Infrastructure.Unity
|
||||
[SerializeField] private DeathPlaneAdapter deathPlanePrefab;
|
||||
[SerializeField] private SoundManager soundManager;
|
||||
[SerializeField] private RumbleManager rumbleManager;
|
||||
[SerializeField] private BeatPulseController beatPulseController;
|
||||
[SerializeField] private CameraController cameraController;
|
||||
[SerializeField] private NpcController npcPrefab;
|
||||
[SerializeField] private HunterNpcController hunterNpcPrefab;
|
||||
@@ -181,6 +182,9 @@ namespace Infrastructure.Unity
|
||||
private void HandleGameOver()
|
||||
{
|
||||
_isGameRunning = false;
|
||||
|
||||
if (beatPulseController) beatPulseController.StopTracking();
|
||||
|
||||
if (gameOverUi) gameOverUi.SetActive(true);
|
||||
|
||||
StartCoroutine(RestartRoutine());
|
||||
@@ -253,6 +257,8 @@ namespace Infrastructure.Unity
|
||||
{
|
||||
soundManager.PlayGameStart();
|
||||
soundManager.PlayMusic();
|
||||
|
||||
if (beatPulseController) beatPulseController.BeginTracking();
|
||||
}
|
||||
|
||||
if (_playerInstance)
|
||||
|
||||
Reference in New Issue
Block a user