Files
AppleHillsProduction/Assets/Scripts/UI/DivingGameOverScreen.cs

20 lines
530 B
C#
Raw Normal View History

using System;
2025-10-16 22:35:23 +02:00
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()
2025-10-16 22:35:23 +02:00
{
var progress = new Progress<float>(p => Logging.Debug($"Loading progress: {p * 100:F0}%"));
await SceneManagerService.Instance.ReloadCurrentScene(progress);;
2025-10-16 22:35:23 +02:00
gameObject.SetActive(false);
}
}