26 lines
674 B
C#
26 lines
674 B
C#
using UnityEngine.InputSystem;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public class CombatItemInventoryUi : ItemInventoryUi
|
|
{
|
|
public override void Close()
|
|
{
|
|
base.Close();
|
|
|
|
var playerInput = FindAnyObjectByType<PlayerInput>();
|
|
if (playerInput != null && playerInput.enabled)
|
|
{
|
|
playerInput.SwitchCurrentActionMap(CombatInput.COMBAT);
|
|
}
|
|
}
|
|
|
|
protected override void InitAndUpdateInventory()
|
|
{
|
|
inventory = DataManager.Inst.CombatInventory;
|
|
|
|
base.InitAndUpdateInventory();
|
|
}
|
|
}
|
|
} |