Esempio n. 1
0
    void DrawMovePath(TileCell targetTileCell)
    {
        for (int i = 0; i < _movePossibleTiles.Count; i++)
        {
            _movePossibleTiles[i].Draw(Color.blue);
        }
        TileCell pathTileCell = targetTileCell;

        while (null != pathTileCell)
        {
            pathTileCell.Draw(Color.red);
            pathTileCell = pathTileCell.GetPrevTileCell(_character);
        }
    }