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
13 lines
No EOL
411 B
C#
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);
|
|
}
|
|
} |