private void OnAmountChanged(InventoryChangedEventType eventType, ItemType itemType) { if (itemType == Type) { UpdateView(); } }
//Will be activated with inventory private void OnKeyAmountChanged(InventoryChangedEventType eventType, Item item) { if (Type != item.Type) { return; } int keyAmount = GameState.CurrentInventory.CountOfType(Type); KeysAmountText.text = $"x{keyAmount}"; }