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:
d-hain 2022-05-19 02:30:21 +02:00
parent 433158e658
commit aacdd80fdf
103 changed files with 17775 additions and 58 deletions

View file

@ -2,26 +2,19 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UsableItem : Item, IUsable
{
public class UsableItem : Item, IUsable {
// Start is called before the first frame update
void Start()
{
void Start() {
}
// Update is called once per frame
void Update()
{
void Update() {
}
public UsableItem(string displayName, string description, int id) : base(displayName, description, id)
{
}
public void select()
{
PlayerController.getInstance().setSelectedItem(this);
}
public UsableItem(string displayName, string description, int id) : base(displayName, description, id) {
}
public void select() {
PlayerController.instance.setSelectedItem(this);
}
}