Пример #1
0
    void paintCircle(Vector3Int center, int radius)
    {
        Vector3Int[] positions = getPostionsInRadiusExludingImpassableTerrain(center, radius);

        TileBase[] tileArray = new TileBase[positions.Length];
        tileArray.Fill(evilTile);
        tileMap.SetTiles(positions, tileArray);
    }