sync some updates
This commit is contained in:
@@ -15,7 +15,7 @@ public class UpgradeManager : MonoBehaviour
|
||||
HitBonus
|
||||
}
|
||||
|
||||
struct CardDefinition
|
||||
public struct CardDefinition
|
||||
{
|
||||
public UpgradeCard.UpgradeType type;
|
||||
public string title;
|
||||
@@ -843,6 +843,13 @@ public class UpgradeManager : MonoBehaviour
|
||||
return IsTeslaTowerSelected() ? TeslaCards : CannonCards;
|
||||
}
|
||||
|
||||
public static IEnumerable<CardDefinition> GetCardsForTower(string towerId)
|
||||
{
|
||||
CardDefinition[] cards = towerId == TeslaTowerId ? TeslaCards : CannonCards;
|
||||
foreach (CardDefinition card in cards)
|
||||
yield return card;
|
||||
}
|
||||
|
||||
static bool IsTeslaTowerSelected()
|
||||
{
|
||||
return PlayerPrefs.GetString(SelectedTowerKey, "cannon") == TeslaTowerId;
|
||||
|
||||
Reference in New Issue
Block a user