fix
This commit is contained in:
@@ -28,7 +28,6 @@ public class SummonerSpawner : MonoBehaviour
|
|||||||
public void SelectNextObject()
|
public void SelectNextObject()
|
||||||
{
|
{
|
||||||
if (spawnableObjects.Length == 0) return;
|
if (spawnableObjects.Length == 0) return;
|
||||||
if (isSpawning) return;
|
|
||||||
|
|
||||||
currentObjectIndex = (currentObjectIndex + 1) % spawnableObjects.Length;
|
currentObjectIndex = (currentObjectIndex + 1) % spawnableObjects.Length;
|
||||||
Debug.Log($"Wybrano obiekt: {spawnableObjects[currentObjectIndex].name} (Index: {currentObjectIndex})");
|
Debug.Log($"Wybrano obiekt: {spawnableObjects[currentObjectIndex].name} (Index: {currentObjectIndex})");
|
||||||
@@ -37,7 +36,6 @@ public class SummonerSpawner : MonoBehaviour
|
|||||||
public void SelectPreviousObject()
|
public void SelectPreviousObject()
|
||||||
{
|
{
|
||||||
if (spawnableObjects.Length == 0) return;
|
if (spawnableObjects.Length == 0) return;
|
||||||
if (isSpawning) return;
|
|
||||||
|
|
||||||
currentObjectIndex--;
|
currentObjectIndex--;
|
||||||
if (currentObjectIndex < 0)
|
if (currentObjectIndex < 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user