CapersProject/Assets/02.Scripts/Ui/ClearPopupUi.cs
Nam Tae Gun 76231331d2 Props 폴더 세분화
+ MenuPopupUi에 Switch ActionMap 기능 추가
2024-06-06 22:36:22 +09:00

35 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()
{
VisualFeedbackManager.Instance.SetBaseTimeScale(1f);
PlayerInputKeyManager.Instance.DisableCurrentPlayerInput();
_moveNextStageButton.interactable = (int)DataManager.Instance.CurrentSaveStage < Enum.GetValues(typeof(SaveStage)).Length - 1;
base.Open();
}
public override void Close()
{
PlayerInputKeyManager.Instance.EnableCurrentPlayerInput();
VisualFeedbackManager.Instance.SetBaseTimeScale(1f);
base.Close();
}
}
}