using System;
using HexFiled;
using Items.ItemViews;
using Units;
using UnityEngine;

namespace Items
{
    public class ItemContainer
    {
        private ItemView _instance;

        public Action OnItemUsed;

        public Item Item { get; }

        public ItemView Instance => _instance;

        public Unit Unit { get; }

        public GameObject AimInstance { get; set; }

        public HexDirection Direction { get; set; }

        public Unit Value { get; set; }

        public ItemContainer(Item item, ItemView instance, Unit unit)
        {
            Item = item;
            _instance = instance;
            Unit = unit;
        }

        public void DeAim()
        {
            AimInstance.SetActive(false);
        }
        
    }
}