private void ShowRange(bool useLineOfSight = false) { List <int> neighbours = tgs.CellGetNeighbours(tgs.cellHighlightedIndex, HighlightRange); if (neighbours != null) { if (useLineOfSight) { tgs.CellTestLineOfSight(tgs.cellHighlightedIndex, neighbours); } tgs.CellFlash(neighbours, Color.yellow, 1f); } }
void DefineFrontFacing() { int cellIndex = tgs.CellGetNeighbour(tgs.cellLastClickedIndex, CELL_SIDE.Bottom); tgs.CellFlash(cellIndex, Color.cyan, 1f); }