Small changes

This commit is contained in:
2026-04-17 18:24:24 +01:00
parent 8eb799c8b6
commit 352184df25
2 changed files with 15 additions and 2 deletions

View File

@@ -138,7 +138,19 @@ namespace Fruitomation.Game
#if UNITY_EDITOR
[MenuItem("Fruitomation/Reset Upgrades")]
#endif // UNITY_EDITOR
public static void ResetUpgrades() => CurrentUpgrades = new UnlockedUpgrades();
[MenuItem("Fruitomation/Unlock All Upgrades")]
public static void UnlockAll()
{
BasicUpgrade[] upgrades = Enum.GetValues(typeof(BasicUpgrade)) as BasicUpgrade[];
System.Diagnostics.Debug.Assert(upgrades != null, nameof(upgrades) + " != null");
foreach (BasicUpgrade upgrade in upgrades)
{
Unlock(upgrade);
}
}
#endif // UNITY_EDITOR
}
}