void RefreshDatas() { foreach (InvestigatorData inv in InvestigatorData.AllInvestigatorsData.FindAll(i => i.DeckPosition > 0 && i.CanPlay).OrderBy(i => i.DeckPosition)) { investigatorSelector.AddInvestigator(inv.Id); } investigatorSelector.CurrentInvestigator = investigatorSelector.ListActiveInvCard[0]; viewCardManager.ShowListSelectedCards(investigatorSelector.CurrentInvestigator); }
public void ChooseInvestigatorCard(CardBaseComponent card) { if (investigatorSelector.InvestigatorQuantity >= GameData.MAX_INVESTIGATORS) { return; } previewComponent.ChooseInvestigator(card); audioComponent.PlayClick(); investigatorSelector.AddInvestigator(card.ID); viewCardManager.ShowInvestigatorCards(); viewCardManager.ShowListSelectedCards(investigatorSelector.CurrentInvestigator); check.CheckingAllReady(); }