@@ -68,8 +68,10 @@ public class ShopUI : MonoBehaviour
{
a = 3;
}
- while (true)
+ int b = 0;
+ while (b < 10)
+ b++;
randId = Random.Range(0, singleTreasureConfigs.Count);
if (!randomTreasure.Exists(x => x == singleTreasureConfigs[randId].ID))