public void UpdateCircle(CircleUpdate update) { if (update.NewCard != null) { Card newCard = CardCache.GetCardById(update.NewCard.CardId); SetCard(newCard); } if (update.RightColor != null) { Circle.RightColor = update.RightColor.Value; } if (update.LeftColor != null) { Circle.LeftColor = update.LeftColor.Value; } if (update.CardPowerChange != null) { CardState.Power = (byte)((int)CardState.Power + (int)update.CardPowerChange); } RefreshTextComponents(); RefreshColors(); RefreshBackgroundSprite(); }
static DataCache() { playerCache = new PlayerCache(); cardCache = new CardCache(); clothCache = new ClothCache(); deploymentCache = new DeploymentCache(); }
public void DrawCards(string[] cardIds) { for (int i = 0; i < cardIds.Length; i++) { SpawnCard(CardCache.GetCardById(cardIds[i])); } }