OldBlueWater/BlueWater/Assets/02.Scripts/Item/OceanItemInventoryUi.cs

26 lines
670 B
C#

using UnityEngine.InputSystem;
// ReSharper disable once CheckNamespace
namespace BlueWaterProject
{
public class OceanItemInventoryUi : ItemInventoryUi
{
public override void Close()
{
base.Close();
var playerInput = FindAnyObjectByType<PlayerInput>();
if (playerInput != null && playerInput.enabled)
{
playerInput.SwitchCurrentActionMap(ShipPlayer.OCEAN);
}
}
protected override void InitAndUpdateInventory()
{
inventory = DataManager.Inst.OceanInventory;
base.InitAndUpdateInventory();
}
}
}