예제 #1
0
    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);
        }
    }
예제 #2
0
 void DefineFrontFacing()
 {
     int cellIndex = tgs.CellGetNeighbour(tgs.cellLastClickedIndex, CELL_SIDE.Bottom);
     tgs.CellFlash(cellIndex, Color.cyan, 1f);
 }