9fa400f9a7
Simple code refaactor
25 lines
648 B
C#
25 lines
648 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.EventSystems;
|
|
using System;
|
|
|
|
public interface ISlot
|
|
{
|
|
int Number { get; set; }
|
|
Item Item { get; set; }
|
|
|
|
// enum typ dziecka
|
|
// A : enum A
|
|
// B : enum B
|
|
event Action<ItemSlot> OnBeginDragEvent;
|
|
event Action<ItemSlot> OnEndDragEvent;
|
|
event Action<ItemSlot> OnDragEvent;
|
|
event Action<ItemSlot> OnDropEvent;
|
|
//(B)Islot // as B
|
|
|
|
public void SetupSlot(int _number, Item _item, BasePanelController _PanelController);
|
|
public void SetItem(Item _item);
|
|
bool CanReceiveItem(Item item);
|
|
} |