From 3d9870b82513c2aeb474e2f131a61708d9046247 Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Mon, 25 Dec 2023 23:19:58 +0000 Subject: [PATCH] Added drillable prefab to tilemap --- Assets/Scripts/GenerateTileMap.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/GenerateTileMap.cs b/Assets/Scripts/GenerateTileMap.cs similarity index 93% rename from Assets/GenerateTileMap.cs rename to Assets/Scripts/GenerateTileMap.cs index 46742ed..6d5d630 100644 --- a/Assets/GenerateTileMap.cs +++ b/Assets/Scripts/GenerateTileMap.cs @@ -14,7 +14,8 @@ private float offsetX; private float offsetY; Tilemap tilemap; - public RuleTile ruleTile; + public RuleTile forestRuleTile; + public TileBase borderTile; //public List<TileBase> tiles; private void Awake() @@ -70,7 +71,7 @@ { if (!destroyedTiles.Contains(new Vector3Int(x, y, 0))) { - tilemap.SetTile(new Vector3Int(x, y), ruleTile); + tilemap.SetTile(new Vector3Int(x, y), forestRuleTile); } } -- Gitblit v1.9.3