public void SetUpgrade(WrenchUpgrade upgrade, bool state)
 {
     if (upgrade.ToInt() < upgrades.Count && upgrade.ToInt() >= 0 && unlockedUpgrades[upgrade.ToInt()])
     {
         upgrades[upgrade.ToInt()] = state;
     }
 }
        public bool GetUpgrade(WrenchUpgrade upgrade)
        {
            if (upgrade.ToInt() < upgrades.Count && upgrade.ToInt() >= 0)
            {
                return(false);
            }

            return(upgrades[upgrade.ToInt()]);
        }