15 lines
No EOL
415 B
C#
15 lines
No EOL
415 B
C#
using UnityEngine;
|
|
|
|
public class InventorySlot : ItemStorageSlot {
|
|
/**
|
|
* Gets called when the Inventory Slot is clicked
|
|
*/
|
|
public override void UseItem() {
|
|
if(Item.GetType() == typeof(UsableItem)) {
|
|
((UsableItem) Item).Select();
|
|
Debug.Log("using " + Item.displayName);
|
|
} else {
|
|
Debug.Log("Item not usable " + Item.displayName);
|
|
}
|
|
}
|
|
} |