This commit is contained in:
Szymon Miś
2025-10-24 16:19:13 +02:00
parent a9377a2de1
commit 21710baa5c

View File

@@ -28,7 +28,6 @@ public class SummonerSpawner : MonoBehaviour
public void SelectNextObject()
{
if (spawnableObjects.Length == 0) return;
if (isSpawning) return;
currentObjectIndex = (currentObjectIndex + 1) % spawnableObjects.Length;
Debug.Log($"Wybrano obiekt: {spawnableObjects[currentObjectIndex].name} (Index: {currentObjectIndex})");
@@ -37,7 +36,6 @@ public class SummonerSpawner : MonoBehaviour
public void SelectPreviousObject()
{
if (spawnableObjects.Length == 0) return;
if (isSpawning) return;
currentObjectIndex--;
if (currentObjectIndex < 0)