diff --git a/Assets/Scripts/Shop/ShopManager.cs b/Assets/Scripts/Shop/ShopManager.cs index 5dd026f3883a0b6e87f66e30cb639475709d1977..292dce140ec1dd8b516f3a22e5f482fbad83bad7 100644 --- a/Assets/Scripts/Shop/ShopManager.cs +++ b/Assets/Scripts/Shop/ShopManager.cs @@ -52,6 +52,15 @@ public class ShopManager : MonoBehaviour if (i<3 && player.GetComponent<PlayerMovement>().pet != 0){ purchaseBtn[i].interactable = false; } + if (shopItemsSO.ItemsSO[i].title == "Shotgun" && player.GetComponent<PlayerMovement>().shotgun == 1){ + purchaseBtn[i].interactable = false; + } + if (shopItemsSO.ItemsSO[i].title == "Sword" && player.GetComponent<PlayerMovement>().sword == 1){ + purchaseBtn[i].interactable = false; + } + if (shopItemsSO.ItemsSO[i].title == "Bow" && player.GetComponent<PlayerMovement>().bow == 1){ + purchaseBtn[i].interactable = false; + } } }