Underwater rushed audio job
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user