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();

View File

@@ -2,6 +2,7 @@
using System.Collections;
using AppleHills.Core.Settings;
using Core;
using UnityEngine.Audio;
namespace Minigames.DivingForPictures
{
@@ -22,6 +23,7 @@ namespace Minigames.DivingForPictures
private bool _isShowingDamageColor;
private Coroutine _blinkCoroutine;
private Color _originalColor;
public AudioSource damagePlayer;
private void Awake()
{
@@ -95,6 +97,7 @@ namespace Minigames.DivingForPictures
// Start a new blink coroutine
_blinkCoroutine = StartCoroutine(BlinkCoroutine());
damagePlayer.Play();
}
/// <summary>