public void OnLocationAction_Miskatonic_University(LocationCard loc) { // TODO: Merge into ActionDropdown //Player.Get().ActionDone(PlayerAction.OtherAction); var ui = GameLogic.Get().m_mainGameUI; var lstCards = ui.m_lstCardChoice; int num = Mathf.Min(6, GameLogic.Get().m_lstPlayerCards.Count); lstCards.Clear(); for (int i = 0; i < num; ++i) { PlayerCard card = GameLogic.Get().m_lstPlayerCards[i].GetComponent <PlayerCard>(); if (card.IsKeywordContain(Card.Keyword.Tome) || card.IsKeywordContain(Card.Keyword.Spell)) { lstCards.Add(card); } } if (lstCards.Count > 0) { List <string> cardNames = new List <string>(); lstCards.ForEach(card => { cardNames.Add(card.m_cardName); }); ui.m_choiceDropdown.ClearOptions(); ui.m_choiceDropdown.AddOptions(cardNames); ui.m_choiceDropdown.gameObject.SetActive(true); GameLogic.Get().ShowHighlightCardExclusive(lstCards[0], false); ui.m_confirmChoiceBtn.gameObject.SetActive(true); ui.m_choiceMode = MainGame.ConfirmButtonMode.GainCard; } else { GameLogic.Shuffle(GameLogic.Get().m_lstPlayerCards); GameLogic.Get().OutputGameLog(string.Format("{0}使用了米斯卡塔尼克大学的地点行动:没搜索到对应卡牌!\n", Player.Get().m_investigatorCard.m_cardName)); } }