|
@@ -34,15 +34,14 @@ public class ShopUI : MonoBehaviour
|
|
|
|
|
|
|
|
moneyText.text = $"{gameManager.money}";
|
|
moneyText.text = $"{gameManager.money}";
|
|
|
refreshPriceText.text = $"-{refreshPrice}";
|
|
refreshPriceText.text = $"-{refreshPrice}";
|
|
|
- List<int> randomTreasure = new List<int>();
|
|
|
|
|
- List<List<List<SingleTreasureConfig>>> treasureLists = new List<List<List<SingleTreasureConfig>>>(gameManager.treasuresList);
|
|
|
|
|
- for (int i = 0; i < 5; i++)
|
|
|
|
|
- {
|
|
|
|
|
- if (treasuresSaleUI[i].islock)
|
|
|
|
|
- {
|
|
|
|
|
- randomTreasure.Add(treasuresSaleUI[i].treasure.id);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ //List<int> randomTreasure = new List<int>();
|
|
|
|
|
+ //for (int i = 0; i < 5; i++)
|
|
|
|
|
+ //{
|
|
|
|
|
+ // if (treasuresSaleUI[i].islock)
|
|
|
|
|
+ // {
|
|
|
|
|
+ // randomTreasure.Add(treasuresSaleUI[i].treasure.id);
|
|
|
|
|
+ // }
|
|
|
|
|
+ //}
|
|
|
for (int i = 0; i < 5; i++)
|
|
for (int i = 0; i < 5; i++)
|
|
|
{
|
|
{
|
|
|
if (treasuresSaleUI[i].islock)
|
|
if (treasuresSaleUI[i].islock)
|
|
@@ -130,7 +129,7 @@ public class ShopUI : MonoBehaviour
|
|
|
);
|
|
);
|
|
|
treasuresSaleUI[i].treasure = treasure;
|
|
treasuresSaleUI[i].treasure = treasure;
|
|
|
treasuresSaleUI[i].Init();
|
|
treasuresSaleUI[i].Init();
|
|
|
- randomTreasure.Add(singleTreasureConfig.ID);
|
|
|
|
|
|
|
+ //randomTreasure.Add(singleTreasureConfig.ID);
|
|
|
}
|
|
}
|
|
|
DrawUIPolygon();
|
|
DrawUIPolygon();
|
|
|
DrawBag();
|
|
DrawBag();
|