인벤토리UI
This commit is contained in:
Binary file not shown.
@@ -29,6 +29,9 @@ public class InventoryManager : MonoBehaviour
|
||||
public InventoryItemChangedEvent onItemCountChanged;
|
||||
public UnityEvent onInventoryChanged;
|
||||
|
||||
[Header("UI")]
|
||||
[SerializeField] private InventoryUI _inventoryUI;
|
||||
|
||||
[Header("Debug")]
|
||||
[SerializeField] private bool showDebugLog = true;
|
||||
|
||||
@@ -169,6 +172,11 @@ private void NotifyAllItemsChanged()
|
||||
onInventoryChanged?.Invoke();
|
||||
}
|
||||
|
||||
public void InventoryUIToggle()
|
||||
{
|
||||
_inventoryUI.gameObject.SetActive(!_inventoryUI.gameObject.activeSelf);
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
private void OnValidate()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user