Files
AppleHillsProduction/Assets/Scripts/UI/DivingGameOverScreen.cs
2025-10-16 23:19:33 +02:00

20 lines
530 B
C#

using System;
using Core;
using UnityEngine;
using UnityEngine.SceneManagement;
public class DivingGameOverScreen : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
public async void PlayAgain()
{
var progress = new Progress<float>(p => Logging.Debug($"Loading progress: {p * 100:F0}%"));
await SceneManagerService.Instance.ReloadCurrentScene(progress);;
gameObject.SetActive(false);
}
}