CapersProject/Assets/02.Scripts/Ui/GameOverPopupUi.cs

21 lines
476 B
C#
Raw Normal View History

2024-06-03 18:26:03 +00:00
using UnityEngine;
namespace BlueWater.Uis
{
public class GameOverPopupUi : PopupUi
{
public override void Open()
{
Time.timeScale = 0f;
PlayerInputKeyManager.Instance.DisableCurrentPlayerInput();
base.Open();
}
public override void Close()
{
Time.timeScale = 1f;
PlayerInputKeyManager.Instance.EnableCurrentPlayerInput();
base.Close();
}
}
}