34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
using System;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace BlueWater.Uis
|
|
{
|
|
public class ClearPopupUi : PopupUi
|
|
{
|
|
[SerializeField]
|
|
private Button _moveNextStageButton;
|
|
|
|
[Button("컴포넌트 초기화")]
|
|
private void InitializeComponents()
|
|
{
|
|
_moveNextStageButton = transform.Find("ClearPanel/Popup Base - Concave/Bottom/Background/Border/MoveNextStageButton").GetComponent<Button>();
|
|
}
|
|
|
|
public override void Open()
|
|
{
|
|
base.Open();
|
|
VisualFeedbackManager.Instance.SetBaseTimeScale(1f);
|
|
PlayerInputKeyManager.Instance.DisableCurrentPlayerInput();
|
|
_moveNextStageButton.interactable = (int)DataManager.Instance.CurrentSaveStage < Enum.GetValues(typeof(SaveStage)).Length - 1;
|
|
}
|
|
|
|
public override void Close()
|
|
{
|
|
base.Close();
|
|
PlayerInputKeyManager.Instance.EnableCurrentPlayerInput();
|
|
VisualFeedbackManager.Instance.SetBaseTimeScale(1f);
|
|
}
|
|
}
|
|
} |