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

23 lines
535 B
C#
Raw Normal View History

using UnityEngine;
using UnityEngine.InputSystem;
// ReSharper disable once CheckNamespace
namespace BlueWaterProject
{
public class GameOverPopupUi : PopupUi
{
public override void Open()
{
Time.timeScale = 0f;
FindAnyObjectByType<PlayerInput>().enabled = false;
base.Open();
}
public override void Close()
{
Time.timeScale = 1f;
FindAnyObjectByType<PlayerInput>().enabled = true;
base.Close();
}
}
}