Foerming/Assets/Scripts/UsableItem.cs
d-hain aacdd80fdf 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
2022-05-19 02:30:21 +02:00

20 lines
No EOL
474 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
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() {
PlayerController.instance.setSelectedItem(this);
}
}