Game over screen return to levels menu

This commit is contained in:
Michal Pikulski
2025-10-17 14:28:13 +02:00
parent 5851b5a12f
commit 2a0dbe98a2
2 changed files with 489 additions and 55 deletions

View File

@@ -24,4 +24,26 @@ public class DivingGameOverScreen : MonoBehaviour
await SceneManagerService.Instance.ReloadCurrentScene(progress);;
gameObject.SetActive(false);
}
/// <summary>
/// Exits to the main menu scene.
/// </summary>
public async void ExitToAppleHills()
{
gameObject.SetActive(false);
// Replace with the actual scene name as set in Build Settings
var progress = new Progress<float>(p => Logging.Debug($"Loading progress: {p * 100:F0}%"));
await SceneManagerService.Instance.SwitchSceneAsync("AppleHillsOverworld", progress);
}
/// <summary>
/// Exits to the main menu scene.
/// </summary>
public async void ExitToQuarry()
{
gameObject.SetActive(false);
// Replace with the actual scene name as set in Build Settings
var progress = new Progress<float>(p => Logging.Debug($"Loading progress: {p * 100:F0}%"));
await SceneManagerService.Instance.SwitchSceneAsync("Quarry", progress);
}
}