private void SwitchToDeck(string newPath) { deckModified = false; deckPath = newPath; DeckService.Load(deckPath); ClearDeck(); for (int i = 0; i < 3; ++i) { foreach (var code in DeckService.CurrentDeck.AllCards[i]) { AddNewCard(GetCardData(code), i); } SpreadCard(i); } }
private void OnReadyClick() { string fname = Config.DeckPath + tMPSelectedDeck.text + ".ydk"; if (!File.Exists(fname)) { MainGame.Instance.HintBox.ShowHint(DataService.TzlString(6), 1f); RefreshDeckList(); return; } DeckService.Load(fname); Config.Set("LastDeck", tMPSelectedDeck.text); SetDeckListEnable(false); NetworkService.Instance.Send(DeckService.CurrentDeck.ToArray()); NetworkService.Instance.Send(CToSMessage.HsReady); }