29 lines
785 B
C#
29 lines
785 B
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.InputSystem;
|
|
using UnityEngine.UI;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class ClearPopupUi : PopupUi
|
|
{
|
|
[SerializeField] private Button moveNextStageButton;
|
|
|
|
public override void Open()
|
|
{
|
|
Time.timeScale = 0f;
|
|
FindAnyObjectByType<PlayerInput>().enabled = false;
|
|
moveNextStageButton.interactable = (int)DataManager.Inst.CurrentSaveStage < Enum.GetValues(typeof(SaveStage)).Length - 1;
|
|
|
|
base.Open();
|
|
}
|
|
|
|
public override void Close()
|
|
{
|
|
Time.timeScale = 1f;
|
|
FindAnyObjectByType<PlayerInput>().enabled = true;
|
|
base.Close();
|
|
}
|
|
}
|
|
} |