//Toggles the player's ability to click on the purchase button in order to purchase an upgrade
 public void ToggleBuyButton()
 {
     if (!upgrade.reachedMax)
     {
         if (upgrade.CheckInventory(this.gameObject))
         {
             upgradeButton.interactable = true;
         }
         else
         {
             upgradeButton.interactable = false;
         }
     }
     else
     {
         upgradeButton.interactable = false;
     }
 }