added Inventory UI
added logic to inventory * it is very possible to be reworked in the near future * With - ScriptableItem - an own Inventory class maybe - if necessary no Dictionary anymore
This commit is contained in:
parent
433158e658
commit
aacdd80fdf
103 changed files with 17775 additions and 58 deletions
|
|
@ -1,10 +1,13 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
//TODO: Auf ScriptableItem umschreiben!!!!!!!!!!
|
||||
//
|
||||
//https://www.youtube.com/watch?v=YLhj7SfaxSE
|
||||
public class Item : MonoBehaviour, IComparable<Item> {
|
||||
private readonly string displayName;
|
||||
private readonly string description;
|
||||
private readonly int id; //TODO: create an actual ID System that makes snens
|
||||
public readonly string displayName;
|
||||
public readonly string description;
|
||||
public readonly int id; //TODO: create an actual ID System that makes snens
|
||||
public SpriteRenderer spriteRenderer;
|
||||
public Sprite selectedSprite;
|
||||
public Sprite defaultSprite;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue