Finished changing score to amount of photos

This commit is contained in:
2025-11-18 12:45:36 +01:00
parent 219f2239a1
commit 2c4e90b698
5 changed files with 159 additions and 154 deletions

View File

@@ -101,6 +101,7 @@ namespace Minigames.DivingForPictures
public AudioSource deathAudioPlayer;
public CameraViewfinderManager cameraViewfinderManager;
public GameObject scoreCanvasObject;
public static DivingGameManager Instance => _instance;
@@ -629,9 +630,9 @@ namespace Minigames.DivingForPictures
deathAudioPlayer.Stop();
CinematicsManager.Instance.LoadAndPlayCinematic("SurfacingCinematic",true);
CinematicsManager.Instance.ChangeCinematicBackgroundColour(new Color(0.5058824f, 0.7803922f, 0.8862746f, 1f));
//PlayerHudManager.Instance.ResizeCinematicPlayer();
//surfacingTimeline.Play();
//Logging.Debug("[DivingGameManager] Last tile left the screen, playing timeline");
// Remove score canvas
scoreCanvasObject.SetActive(false);
}
else
@@ -646,6 +647,8 @@ namespace Minigames.DivingForPictures
CinematicsManager.Instance.OnCinematicStopped -= EndGame;
// Start the end game sequence that grants a booster, waits for the UI animation, then shows Game Over.
StartCoroutine(EndGameSequence());
}
private IEnumerator EndGameSequence()