Foerming/Assets/Scripts/UsableItem.cs
d-hain ce1f6ed389 added cost amount to items
added Shop UI
added Shop.cs
 * you now can buy items and you lose the cost when bought
 * shop is scrollable

added comments in Inventory.cs, InventorySlot.cs, InventoryUI.cs
now showing description when hovering over items in shop or inventory
2022-06-02 00:08:37 +02:00

13 lines
No EOL
411 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "New UsableItem", menuName = "Inventory/UsableItem")]
public class UsableItem : Item, IUsable {
public UsableItem(string displayName, string description, int id) : base(displayName, description, id) {
}
public void Select() {
PlayerController.instance.SetSelectedItem(this);
}
}