35 lines
1.0 KiB
C#
35 lines
1.0 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()
|
||
|
{
|
||
|
Time.timeScale = 0f;
|
||
|
PlayerInputKeyManager.Instance.DisableCurrentPlayerInput();
|
||
|
_moveNextStageButton.interactable = (int)DataManager.Instance.CurrentSaveStage < Enum.GetValues(typeof(SaveStage)).Length - 1;
|
||
|
|
||
|
base.Open();
|
||
|
}
|
||
|
|
||
|
public override void Close()
|
||
|
{
|
||
|
Time.timeScale = 1f;
|
||
|
PlayerInputKeyManager.Instance.EnableCurrentPlayerInput();
|
||
|
base.Close();
|
||
|
}
|
||
|
}
|
||
|
}
|