diff --git a/3D blobici/Assets/Scripts/Cards/CardManager.cs b/3D blobici/Assets/Scripts/Cards/CardManager.cs index 7a631ee..246331b 100644 --- a/3D blobici/Assets/Scripts/Cards/CardManager.cs +++ b/3D blobici/Assets/Scripts/Cards/CardManager.cs @@ -64,7 +64,10 @@ public class CardManager : MonoBehaviour Debug.Log($"Available cards: {string.Join(", ", availableCards.Select(x => x.Skill))}"); Debug.Log($"Unlocked skills: {string.Join(", ", unlockedSkills)}"); - + + if (shuffled.Count <= 0) + return; + float step = Screen.width / shuffled.Count; float pos = step - Screen.width / (2*shuffled.Count);