Screenshots in Diving Minigame

This commit is contained in:
Michal Pikulski
2025-12-18 10:52:12 +01:00
parent 4e992ccf53
commit ca56e748ba
22 changed files with 1516 additions and 143 deletions

View File

@@ -37,11 +37,18 @@ namespace UI
protected override void DoTransitionIn(Action onComplete)
{
// Update score when showing the screen
if (DivingGameManager.Instance != null)
int finalScore = 0;
if (Minigames.DivingForPictures.Screenshot.DivingScreenshotManager.Instance != null)
{
int finalScore = DivingGameManager.Instance.picturesTaken;
finalScoreText.text = $"x {finalScore}";
finalScore = Minigames.DivingForPictures.Screenshot.DivingScreenshotManager.Instance.ScreenshotCount;
}
else if (DivingGameManager.Instance != null)
{
// Fallback for backward compatibility
finalScore = DivingGameManager.Instance.picturesTaken;
}
finalScoreText.text = $"x {finalScore}";
if (canvasGroup != null)
{