diff options
| author | chai <215380520@qq.com> | 2024-05-19 16:05:01 +0800 |
|---|---|---|
| committer | chai <215380520@qq.com> | 2024-05-19 16:05:01 +0800 |
| commit | c5f145786f4c6d2fe4bea831dfc16e52228920a5 (patch) | |
| tree | a6ead7ea8266c767d58ed0f816dcd7a1dd75bd65 /GameCode/PerkCostModifyer.cs | |
| parent | 48b64e573a1709dc923cb9162b55be0246b3ff63 (diff) | |
* move
Diffstat (limited to 'GameCode/PerkCostModifyer.cs')
| -rw-r--r-- | GameCode/PerkCostModifyer.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/GameCode/PerkCostModifyer.cs b/GameCode/PerkCostModifyer.cs deleted file mode 100644 index d4e2d62..0000000 --- a/GameCode/PerkCostModifyer.cs +++ /dev/null @@ -1,21 +0,0 @@ -using UnityEngine; - -public class PerkCostModifyer : MonoBehaviour -{ - public Equippable requiredPerk; - - public int[] upgradeCostChange; - - private void Start() - { - if (PerkManager.IsEquipped(requiredPerk)) - { - BuildSlot component = GetComponent<BuildSlot>(); - for (int i = 0; i < component.Upgrades.Count; i++) - { - component.Upgrades[i].cost += upgradeCostChange[i]; - } - } - Object.Destroy(this); - } -} |
