Game over screen return to levels menu
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user