30 lines
769 B
C#
30 lines
769 B
C#
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BlueWater.Uis
|
||
|
{
|
||
|
public class SwitchActionPopupUi : PopupUi
|
||
|
{
|
||
|
[SerializeField]
|
||
|
protected InputActionMaps SwitchMapsOpened;
|
||
|
|
||
|
[SerializeField]
|
||
|
protected InputActionMaps SwitchMapsClosed;
|
||
|
|
||
|
public override void Open(List<PopupUi> popupUiList)
|
||
|
{
|
||
|
base.Open(popupUiList);
|
||
|
|
||
|
PlayerInputKeyManager.Instance.SwitchCurrentActionMap(SwitchMapsOpened);
|
||
|
}
|
||
|
|
||
|
public override void Close()
|
||
|
{
|
||
|
base.Close();
|
||
|
|
||
|
if (PopupUiList.Count > 0) return;
|
||
|
|
||
|
PlayerInputKeyManager.Instance.SwitchCurrentActionMap(SwitchMapsClosed);
|
||
|
}
|
||
|
}
|
||
|
}
|