Screenshots in Diving Minigame
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user