17 lines
424 B
C#
17 lines
424 B
C#
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);
|
|
}
|
|
}
|
|
} |