OldBlueWater/BlueWater/Assets/02.Scripts/Ui/RestartPopupUi.cs

17 lines
424 B
C#
Raw Normal View History

using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.SceneManagement;
// ReSharper disable once CheckNamespace
namespace BlueWaterProject
{
public class RestartPopupUi : MonoBehaviour
{
private void OnInteraction(InputValue value)
{
var currentSceneIndex = SceneManager.GetActiveScene().buildIndex;
SceneManager.LoadScene(currentSceneIndex);
}
}
}