diff --git a/Assets/Scripts/PlacementSystem/GridManager.cs b/Assets/Scripts/PlacementSystem/GridManager.cs index 329022f..cbd870e 100644 --- a/Assets/Scripts/PlacementSystem/GridManager.cs +++ b/Assets/Scripts/PlacementSystem/GridManager.cs @@ -6,7 +6,7 @@ using UnityEngine; public class GridManager : MonoBehaviour { [SerializeField] private Vector2Int GridSize; - [SerializeField] private float Gap = 0.1f; + [SerializeField] private Vector2 Gap; [SerializeField] private GridType gridType = GridType.Primary; [Space(10)] [SerializeField] private GameObject TowerSlotPrefab; @@ -37,7 +37,7 @@ public class GridManager : MonoBehaviour for (int y = 0; y < GridSize.y; y++) { // Spawn slot - Vector3 spawnPosition = new(x * (Gap + 1) + 0.5f, 0, y * (Gap + 1) + 0.5f); + Vector3 spawnPosition = new(x * (Gap.x + 1) + 0.5f, 0, y * (Gap.y + 1) + 0.5f); var spawned = Instantiate(TowerSlotPrefab, transform); spawned.transform.localPosition = spawnPosition;