Exemplo n.º 1
0
    /// <summary>
    /// 得到自己手牌
    /// </summary>
    /// <returns></returns>
    public List <string> GetSelfCards()
    {
        NiuniuPlayerUI player = null;

        if (TryGetPlayer(NiuniuModel.Inst.mMySeatId, out player))
        {
            return(player.GetHandCard());
        }
        else
        {
            return(null);
        }
    }
Exemplo n.º 2
0
    /// <summary>
    /// 自己翻牌
    /// </summary>
    public void TurnSelfCards()
    {
        NiuniuPlayerUI player = null;

        if (TryGetPlayer(NiuniuModel.Inst.mMySeatId, out player))
        {
            player.TurnCards(player.GetHandCard());
            NNPlayerHandCardsType type = player.GetCardsType();
            if (type != null)
            {
                player.SetCardType(true, type.point, type.ratio);
                player.SeparateCards(type.order);
            }
        }
    }