コード例 #1
0
 /// <summary>
 /// 小结算
 /// </summary>
 /// <param name="data"></param>
 public void NetOnSmallSettle(NNonSmallSettle data)
 {
     mSelfPlayer.SetLiangCardBtnState(false);
     if (mNiuniuCoinFlyWidget == null)
     {
         mNiuniuCoinFlyWidget = BaseView.GetWidget <NiuniuCoinFlyWidget>(AssetsPathDic.NiuniuCoinFlyWidget, transform);
     }
     ShowLastTime("准备倒计时", data.lastTime);
     StartCoroutine(OnSmallSettle(data));
 }
コード例 #2
0
    /// <summary>
    /// 同步玩家下注
    /// </summary>
    /// <param name="data"></param>
    private void OnPlayerXiaZhu(NNOnPlayerOptResult data)
    {
        if (data.seatId == NiuniuModel.Inst.mMySeatId)
        {
            mSelfPlayer.SetBetBtnItemState(false);
        }
        NiuniuPlayerUI player = null;

        if (mNiuniuCoinFlyWidget == null)
        {
            mNiuniuCoinFlyWidget = BaseView.GetWidget <NiuniuCoinFlyWidget>(AssetsPathDic.NiuniuCoinFlyWidget, transform);
        }
        if (TryGetPlayer(data.seatId, out player))
        {
            player.UpdateCathecticCoin(data.xzValue + "");
            mNiuniuCoinFlyWidget.SetCoinFly(player.GetBaseInfoPos(), player.GetChePosition(), 1, 0.3f);
        }
    }