コード例 #1
0
    private void OnPlayCardHintClicked()
    {
        var     cardHand = Models.gameModel.playModel.MainPlayerHand;
        CardSet hintSet  = cardHand.GetCardSetGreater(Models.gameModel.playModel.lastHand);

        if (hintSet.Type == CardSetType.Invalid)
        {
            EventCenter.BroadCast(EventType.UIFlashHint, "没有可出的牌");
            NetMsgCenter.Instance.SendPassTurnMsg();
            return;
        }
        view.UnselectAllCard();
        view.SelectCards(hintSet.Cards);
    }
コード例 #2
0
 protected override void PassTurn()
 {
     base.PassTurn();
     view.UnselectAllCard();
     view.HideButtons();
 }