Tanoda
|
Every item's cell must contain this script More...
Classes | |
class | DropEventDescriptor |
Public Types | |
enum | CellType { Swap , DropOnly , DragOnly } |
enum | TriggerType { DropRequest , DropEventEnd , ItemAdded , ItemWillBeDestroyed } |
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... | |
Static Public Member Functions | |
static implicit | operator DragAndDropCell (DragAndDropRawCell v) |
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 DragAndDropCell.cs.
Enumerator | |
---|---|
Swap | |
DropOnly | |
DragOnly |
Definition at line 13 of file DragAndDropCell.cs.
Enumerator | |
---|---|
DropRequest | |
DropEventEnd | |
ItemAdded | |
ItemWillBeDestroyed |
Definition at line 20 of file DragAndDropCell.cs.
void DragAndDropCell.AddItem | ( | DragAndDropItem | newItem | ) |
Manualy add item into this cell
newItem | New item |
Definition at line 343 of file DragAndDropCell.cs.
DragAndDropItem DragAndDropCell.GetItem | ( | ) |
void DragAndDropCell.OnDrop | ( | PointerEventData | data | ) |
|
static |
Definition at line 398 of file DragAndDropCell.cs.
void DragAndDropCell.RemoveItem | ( | ) |
Manualy delete item from this cell
Definition at line 361 of file DragAndDropCell.cs.
void DragAndDropCell.SwapItems | ( | DragAndDropCell | firstCell, |
DragAndDropCell | secondCell | ||
) |
Swap items between two cells
firstCell | Cell |
secondCell | Cell |
Definition at line 371 of file DragAndDropCell.cs.
void DragAndDropCell.UpdateBackgroundState | ( | ) |
Change cell's sprite color on item put/remove.
condition | true - filled, false - empty |
Definition at line 310 of file DragAndDropCell.cs.
void DragAndDropCell.UpdateMyItem | ( | ) |
Updates my item
Definition at line 325 of file DragAndDropCell.cs.
CellType DragAndDropCell.cellType = CellType.Swap |
Definition at line 38 of file DragAndDropCell.cs.
Definition at line 40 of file DragAndDropCell.cs.
Definition at line 42 of file DragAndDropCell.cs.
bool DragAndDropCell.ignoreColor = false |
Definition at line 46 of file DragAndDropCell.cs.
bool DragAndDropCell.unlimitedSource = false |
Definition at line 44 of file DragAndDropCell.cs.