fix:1、修复bug。 2、1.0.8版本提审

This commit is contained in:
2026-05-15 11:09:47 +08:00
parent ee55c03120
commit 978797b678
121 changed files with 67129 additions and 66253 deletions
+5 -2
View File
@@ -64,9 +64,12 @@ public class CreatAnimalCard : MonoBehaviour
card_item_list.Clear();
// ---------- 新增:先从0~15中挑选 card_type_max 个不同的类型 ----------
List<int> allTypes = Enumerable.Range(0, 15).ToList(); // [0,1,2,...,15]
List<int> allTypes = Enumerable.Range(0, 15).ToList(); // [0,1,2,...,14]
List<int> chosenTypes = new List<int>();
for (int i = 0; i < card_type_max; i++)
int actualTypeMax = Mathf.Min(card_type_max, allTypes.Count);
for (int i = 0; i < actualTypeMax; i++)
{
int idx = UnityEngine.Random.Range(0, allTypes.Count);
chosenTypes.Add(allTypes[idx]);