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);