29 lines
561 B
C#
29 lines
561 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Inventory
|
|
{
|
|
public class GridSlot : MonoBehaviour
|
|
{
|
|
|
|
/// Is this slot free
|
|
|
|
[HideInInspector]
|
|
public bool free;
|
|
[HideInInspector]
|
|
public int x, y;
|
|
[HideInInspector]
|
|
public Image image;
|
|
|
|
[HideInInspector]
|
|
public EquipmentPanel equipmentPanel;
|
|
|
|
public bool isLoot;
|
|
|
|
private void OnEnable()
|
|
{
|
|
if (image == null)
|
|
image = GetComponent<Image>();
|
|
}
|
|
}
|
|
} |