Exemplo n.º 1
0
 void SelectCells()
 {
     rangeCells = range.GetCellsInRange(Grid);
     areaCells  = area.GetCellsInArea(Grid, currentCell);
     Grid.HighlightCells(rangeCells, Color.blue);
     if (currentCell != null && rangeCells.Contains(currentCell))
     {
         Grid.HighlightCells(areaCells, Color.red);
     }
 }
Exemplo n.º 2
0
 public override void Enter()
 {
     base.Enter();
     area  = turn.ability.GetComponent <AbilityArea>();
     cells = area.GetCellsInArea(Grid, currentCell);
 }