WGL hace 1 mes
padre
commit
113e2ea5b9
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      ActionTowerDefense/Assets/Scripts/UI/TreasuresSaleUI.cs

+ 2 - 2
ActionTowerDefense/Assets/Scripts/UI/TreasuresSaleUI.cs

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