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().enabled = false; moveNextStageButton.interactable = (int)DataManager.Inst.CurrentSaveStage < Enum.GetValues(typeof(SaveStage)).Length - 1; base.Open(); } public override void Close() { Time.timeScale = 1f; FindAnyObjectByType().enabled = true; base.Close(); } } }