Skip to content
Snippets Groups Projects
Commit e2b2cc22 authored by fernaldyl's avatar fernaldyl
Browse files
parents e1831dd7 43191bbf
No related merge requests found
......@@ -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;
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment