21 lines
553 B
C#
21 lines
553 B
C#
using UnityEngine.InputSystem;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class CombatMenuPopupUi : MenuPopupUi
|
|
{
|
|
public override void Close()
|
|
{
|
|
base.Close();
|
|
|
|
if (!CombatUiManager.Inst.IsPopupListEmpty()) return;
|
|
|
|
var playerInput = FindAnyObjectByType<PlayerInput>();
|
|
if (playerInput != null && playerInput.enabled)
|
|
{
|
|
playerInput.SwitchCurrentActionMap(CombatInput.COMBAT);
|
|
}
|
|
}
|
|
}
|
|
} |