Tanoda
DragAndDropRawCell Class Reference

Every item's cell must contain this script More...

Inheritance diagram for DragAndDropRawCell:

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
 

Detailed Description

Every item's cell must contain this script

Definition at line 11 of file DragAndDropRawCell.cs.

Member Function Documentation

◆ AddItem()

void DragAndDropRawCell.AddItem ( DragAndDropItem  newItem)

Manualy add item into this cell

Parameters
newItemNew item

Definition at line 319 of file DragAndDropRawCell.cs.

◆ GetItem()

DragAndDropItem DragAndDropRawCell.GetItem ( )

Get item from this cell

Returns
Item

Definition at line 310 of file DragAndDropRawCell.cs.

◆ OnDrop()

void DragAndDropRawCell.OnDrop ( PointerEventData  data)

Item is dropped in this cell

Parameters
data

Definition at line 88 of file DragAndDropRawCell.cs.

◆ RemoveItem()

void DragAndDropRawCell.RemoveItem ( )

Manualy delete item from this cell

Definition at line 337 of file DragAndDropRawCell.cs.

◆ SwapItems()

void DragAndDropRawCell.SwapItems ( DragAndDropCell  firstCell,
DragAndDropCell  secondCell 
)

Swap items between two cells

Parameters
firstCellCell
secondCellCell

Definition at line 347 of file DragAndDropRawCell.cs.

◆ UpdateBackgroundState()

void DragAndDropRawCell.UpdateBackgroundState ( )

Change cell's sprite color on item put/remove.

Parameters
conditiontrue - filled, false - empty

Definition at line 286 of file DragAndDropRawCell.cs.

◆ UpdateMyItem()

void DragAndDropRawCell.UpdateMyItem ( )

Updates my item

Definition at line 301 of file DragAndDropRawCell.cs.

Member Data Documentation

◆ cellType

CellType DragAndDropRawCell.cellType = CellType.Swap

Definition at line 14 of file DragAndDropRawCell.cs.

◆ empty

Color DragAndDropRawCell.empty = new Color()

Definition at line 16 of file DragAndDropRawCell.cs.

◆ full

Color DragAndDropRawCell.full = new Color()

Definition at line 18 of file DragAndDropRawCell.cs.

◆ ignoreColor

bool DragAndDropRawCell.ignoreColor = false

Definition at line 22 of file DragAndDropRawCell.cs.

◆ unlimitedSource

bool DragAndDropRawCell.unlimitedSource = false

Definition at line 20 of file DragAndDropRawCell.cs.


The documentation for this class was generated from the following file: