public int DeckId; //上次出战的卡组 public InfoCard() { Decks = new DbDeckData[GameConstants.PlayDeckCount]; for (int i = 0; i < Decks.Length; i++) { Decks[i] = new DbDeckData(i + 1); } }
private void InstallDeckCard() { DeckCard[] dcards = null; DbDeckData dk = UserProfile.InfoCard.SelectedDeck; dcards = new DeckCard[GameConstants.DeckCardCount]; for (int i = 0; i < GameConstants.DeckCardCount; i++) { int cid = dk.GetCardAt(i); dcards[i] = new DeckCard(UserProfile.InfoCard.GetDeckCardById(cid)); } selectRegion.ChangeDeck(dcards); deckStatistic.Update(dcards); }