Class GridCellEffect
Selects the color of the sprite withing the cell depending on whether it has a character in it or not, or if a character is being dragged over it.
Namespace: AutoBattleFramework.Battlefield
Assembly: cs.temp.dll.dll
Syntax
public class GridCellEffect : MonoBehaviour
Fields
CharacterDrag
If there is a character being dragger over the cell.
Declaration
public bool CharacterDrag
Field Value
Type | Description |
---|---|
Boolean |
DragOver
Color of the cell when there is a character being dragged over it.
Declaration
public Color DragOver
Field Value
Type | Description |
---|---|
Color |
Empty
Color of the cell when there is no character inside it.
Declaration
public Color Empty
Field Value
Type | Description |
---|---|
Color |
NotEmpty
Color of the cell when there is a character inside it.
Declaration
public Color NotEmpty
Field Value
Type | Description |
---|---|
Color |
Methods
SetColor(Color)
Set the color of the grid cell.
Declaration
public void SetColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | Selected color of the sprite. |