Example #1
0
    /// <summary>
    /// 激活出牌按钮
    /// </summary>
    void ActivePopButton(bool canReject)
    {
        if (LandlordsModel.Instance.IsTuoGuan || LandlordsMainPlayer.CheckIsLastCanAutoPop())
        {
            return;
        }
        List <Card> cards = CardRules.DelayDiscardCard(UserInfoModel.userInfo.userId.ToString());

        chongxuanBtn.gameObject.SetActive(true);
        chongxuanBtn.interactable = cards.Count > 0;
        tipsBtn.SetActive(true);
        playBtn.gameObject.SetActive(true);
        noPlayBtn.gameObject.SetActive(true);
        noPlayBtn.interactable = canReject;
        playBtn.interactable   = cards.Count > 0;
    }