23 lines
535 B
C#
23 lines
535 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|