2024-06-07 17:31:08 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace BlueWater.Uis
|
|
|
|
{
|
|
|
|
public class SwitchActionPopupUi : PopupUi
|
|
|
|
{
|
|
|
|
[SerializeField]
|
|
|
|
protected InputActionMaps SwitchMapsOpened;
|
|
|
|
|
|
|
|
[SerializeField]
|
|
|
|
protected InputActionMaps SwitchMapsClosed;
|
|
|
|
|
2024-10-29 06:45:18 +00:00
|
|
|
public override void Open()
|
2024-06-07 17:31:08 +00:00
|
|
|
{
|
2024-10-29 06:45:18 +00:00
|
|
|
base.Open();
|
2024-06-07 17:31:08 +00:00
|
|
|
|
|
|
|
PlayerInputKeyManager.Instance.SwitchCurrentActionMap(SwitchMapsOpened);
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void Close()
|
|
|
|
{
|
|
|
|
base.Close();
|
|
|
|
|
2024-10-29 06:45:18 +00:00
|
|
|
if (!PopupUiController.IsPopupListEmpty()) return;
|
2024-06-07 17:31:08 +00:00
|
|
|
|
|
|
|
PlayerInputKeyManager.Instance.SwitchCurrentActionMap(SwitchMapsClosed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|