From e8fc12960e90211e856ae9f7ad24187e9a86cc4b Mon Sep 17 00:00:00 2001 From: Gabriel Ksawery Skowron-Rodriguez Date: Tue, 17 May 2022 15:16:12 +0200 Subject: [PATCH] fixed compilation error --- The project/Assets/Scripts/Managers/TilemapManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/The project/Assets/Scripts/Managers/TilemapManager.cs b/The project/Assets/Scripts/Managers/TilemapManager.cs index 32224aef..b968269e 100644 --- a/The project/Assets/Scripts/Managers/TilemapManager.cs +++ b/The project/Assets/Scripts/Managers/TilemapManager.cs @@ -82,7 +82,7 @@ public class TilemapManager : MonoBehaviour if (GetTileState(x, y) != TileState.free) return false; - tiles[x, y].standingSoldier = Instantiate(soldierPrefab, tilemap.CellToWorld(new Vector3Int(x, y, 0)) + WORLD_SPACE_OFFSET, Quaternion.identity).GetComponent(); + tiles[x, y].standingSoldier = Instantiate(soldierPrefab, tilemap.CellToWorld(new Vector3Int(x, y, 0)) + WORLD_SPACE_OFFSET, Quaternion.identity).GetComponent(); if (isAlly) tiles[x, y].standingSoldier.setOwnTag(Soldier.SoldierType.Ally);