fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user