Tanoda
|
Every item's cell must contain this script More...
Public Member Functions | |
void | OnDrop (PointerEventData data) |
Item is dropped in this cell More... | |
void | UpdateBackgroundState () |
Change cell's sprite color on item put/remove. More... | |
void | UpdateMyItem () |
Updates my item More... | |
DragAndDropItem | GetItem () |
Get item from this cell More... | |
void | AddItem (DragAndDropItem newItem) |
Manualy add item into this cell More... | |
void | RemoveItem () |
Manualy delete item from this cell More... | |
void | SwapItems (DragAndDropCell firstCell, DragAndDropCell secondCell) |
Swap items between two cells More... | |
Public Attributes | |
CellType | cellType = CellType.Swap |
Color | empty = new Color() |
Color | full = new Color() |
bool | unlimitedSource = false |
bool | ignoreColor = false |
Every item's cell must contain this script
Definition at line 11 of file DragAndDropRawCell.cs.
void DragAndDropRawCell.AddItem | ( | DragAndDropItem | newItem | ) |
Manualy add item into this cell
newItem | New item |
Definition at line 319 of file DragAndDropRawCell.cs.
DragAndDropItem DragAndDropRawCell.GetItem | ( | ) |
void DragAndDropRawCell.OnDrop | ( | PointerEventData | data | ) |
void DragAndDropRawCell.RemoveItem | ( | ) |
Manualy delete item from this cell
Definition at line 337 of file DragAndDropRawCell.cs.
void DragAndDropRawCell.SwapItems | ( | DragAndDropCell | firstCell, |
DragAndDropCell | secondCell | ||
) |
Swap items between two cells
firstCell | Cell |
secondCell | Cell |
Definition at line 347 of file DragAndDropRawCell.cs.
void DragAndDropRawCell.UpdateBackgroundState | ( | ) |
Change cell's sprite color on item put/remove.
condition | true - filled, false - empty |
Definition at line 286 of file DragAndDropRawCell.cs.
void DragAndDropRawCell.UpdateMyItem | ( | ) |
Updates my item
Definition at line 301 of file DragAndDropRawCell.cs.
CellType DragAndDropRawCell.cellType = CellType.Swap |
Definition at line 14 of file DragAndDropRawCell.cs.
Definition at line 16 of file DragAndDropRawCell.cs.
Definition at line 18 of file DragAndDropRawCell.cs.
bool DragAndDropRawCell.ignoreColor = false |
Definition at line 22 of file DragAndDropRawCell.cs.
bool DragAndDropRawCell.unlimitedSource = false |
Definition at line 20 of file DragAndDropRawCell.cs.