Underwater rushed audio job

This commit is contained in:
2025-10-17 16:31:23 +02:00
parent f465e50197
commit 6e5a6c049f
9 changed files with 879 additions and 30 deletions

View File

@@ -100,7 +100,10 @@ namespace Minigames.DivingForPictures
private static DivingGameManager _instance = null;
private static bool _isQuitting = false;
public AudioSource deathAudioPlayer;
public static DivingGameManager Instance => _instance;
private void Awake()
@@ -352,6 +355,7 @@ namespace Minigames.DivingForPictures
if (currentRopeIndex >= playerRopes.Length)
{
TriggerGameOver();
deathAudioPlayer.Play();
}
else
{
@@ -661,6 +665,7 @@ namespace Minigames.DivingForPictures
if (surfacingTimeline != null)
{
//Instead of surfacingTimeline, play the outro cinematic
deathAudioPlayer.Stop();
CinematicsManager.Instance.LoadAndPlayCinematic("SurfacingCinematic");
CinematicsManager.Instance.ShowCinematicBackground(true);
//surfacingTimeline.Play();