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); } }
public override void Enter() { base.Enter(); area = turn.ability.GetComponent <AbilityArea>(); cells = area.GetCellsInArea(Grid, currentCell); }