20 lines
530 B
C#
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);
|
|
}
|
|
} |