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
This commit is contained in:
parent
c9416181fc
commit
ce1f6ed389
30 changed files with 4726 additions and 64 deletions
|
|
@ -4,18 +4,10 @@ using UnityEngine;
|
|||
|
||||
[CreateAssetMenu(fileName = "New UsableItem", menuName = "Inventory/UsableItem")]
|
||||
public class UsableItem : Item, IUsable {
|
||||
// Start is called before the first frame update
|
||||
void Start() {
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update() {
|
||||
}
|
||||
|
||||
public UsableItem(string displayName, string description, int id) : base(displayName, description, id) {
|
||||
}
|
||||
|
||||
public void select() {
|
||||
public void Select() {
|
||||
PlayerController.instance.SetSelectedItem(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue