Initial commit

This commit is contained in:
IM23a-spirgif
2025-03-28 20:10:45 +01:00
commit 8162e2b331
781 changed files with 240333 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using UnityEngine;
public class SpecialChoiceCard : MonoBehaviour
{
public UpgradeManager upgradeManager;
void OnMouseDown()
{
// Identify which UpgradeType this card has
UpgradeCard card = GetComponent<UpgradeCard>();
if (card != null)
{
upgradeManager.UnlockSpecialUpgrade(card.upgradeType);
}
// Destroy all other special cards
SpecialChoiceCard[] allChoices = FindObjectsOfType<SpecialChoiceCard>();
foreach (var choice in allChoices)
{
Destroy(choice.gameObject);
}
Time.timeScale = 1f; // Resume game
}
}