|
|
@@ -135,7 +135,7 @@ public class TreasuresSaleUI : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void Buy()
|
|
|
+ public void Buy(int id)
|
|
|
{
|
|
|
GameManager gameManager = GameManager.instance;
|
|
|
if(gameManager.money - treasure.price < 0)
|
|
|
@@ -169,6 +169,7 @@ public class TreasuresSaleUI : MonoBehaviour
|
|
|
shopUI.DrawUIPolygon();
|
|
|
shopUI.AddTreasureInBag();
|
|
|
gameObject.SetActive(false);
|
|
|
+ buy.ChangeImg(id);
|
|
|
isNull = true;
|
|
|
islock = false;
|
|
|
gameManager.GetTreasure(treasure);
|