2022-05-29 21:54:28 +02:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
2022-11-19 17:02:31 +01:00
|
|
|
using UnityEngine.EventSystems;
|
2022-05-29 21:54:28 +02:00
|
|
|
|
|
|
|
public class ChestSlot : ItemSlot
|
|
|
|
{
|
2022-11-19 17:02:31 +01:00
|
|
|
/* public ChestSlot(int number, Item item): base(number, item)
|
|
|
|
{
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
2022-05-29 21:54:28 +02:00
|
|
|
public override bool CanReceiveItem(Item item)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
|
|
|
|
// // allow to put item only when slot is empty
|
|
|
|
// if(Item == null)
|
|
|
|
// return true;
|
|
|
|
|
|
|
|
// EquippableItem equippableItem = item as EquippableItem;
|
|
|
|
// return equippableItem == null;
|
|
|
|
// // what when player try drop putted equipment fowart to chest
|
|
|
|
// // what when player try put item on unempty field
|
|
|
|
}
|
|
|
|
}
|