Example #1
0
    /// <summary>
    /// 小结算飞金币
    /// </summary>
    /// <param name="list"></param>
    /// <param name="winDic"></param>
    /// <param name="loseDic"></param>
    /// <param name="winList"></param>
    /// <param name="loseList"></param>
    private void FlySmallSettleCoin(List <TenonSmallSettleWinLoseList> list)
    {
        TenPlayerUI winPlayer  = null;
        TenPlayerUI losePlayer = null;

        if (list != null)
        {
            for (int i = 0; i < list.Count; i++)
            {
                if (TryGetPlayer(list[i].winSeatId, out winPlayer) && TryGetPlayer(list[i].loseSeatId, out losePlayer))
                {
                    mNiuniuCoinFlyWidget.SetCoinFly(losePlayer.GetBaseInfoPos(), winPlayer.GetBaseInfoPos(), 5, 0.5f);
                }
            }
        }
    }
Example #2
0
    /// <summary>
    /// 同步玩家下注
    /// </summary>
    /// <param name="data"></param>
    private void OnPlayerXiaZhu(TenOnPlayerOptResult data)
    {
        if (data.seatId == TenModel.Inst.mMySeatId)
        {
            mSelfPlayer.SetBetBtnItemState(false);
        }
        TenPlayerUI player = null;

        if (mNiuniuCoinFlyWidget == null)
        {
            mNiuniuCoinFlyWidget = BaseView.GetWidget <TenCoinFlyWidget>(AssetsPathDic.TenCoinFlyWidget, transform);
        }
        if (TryGetPlayer(data.seatId, out player))
        {
            player.UpdateCathecticCoin(data.xzValue + "");
            mNiuniuCoinFlyWidget.SetCoinFly(player.GetBaseInfoPos(), player.GetChePosition(), 1, 0.3f);
        }
    }
Example #3
0
    /// <summary>
    /// 显示互动表情
    /// </summary>
    /// <param name="chat"></param>
    protected void PlayHuDongFace(SendReceiveGameChat chat)
    {
        if (mGameInteractionView == null)
        {
            mGameInteractionView = Global.Inst.GetController <GameInteractionController>().OpenWindow() as GameInteractionView;
        }

        List <ConfigDada>   config = ConfigManager.GetConfigs <TSTHuDongFaceConfig>();
        TSTHuDongFaceConfig con    = null;

        for (int i = 0; i < config.Count; i++)
        {
            TSTHuDongFaceConfig hdf = config[i] as TSTHuDongFaceConfig;
            if (hdf.id == chat.faceIndex)
            {
                con = hdf;
                break;
            }
        }
        //起始位置
        Vector3 from = Vector3.zero;
        //目标位置
        Vector3 to = Vector3.zero;

        TenGameView view = Global.Inst.GetController <TenGameController>().mView;

        TenPlayerUI fromPlayer = null;
        TenPlayerUI toPlayer   = null;

        if (view.TryGetPlayer(chat.fromSeatId, out fromPlayer) && view.TryGetPlayer(chat.toSeatId, out toPlayer))
        {
            from = fromPlayer.GetBaseInfoPos();
            to   = toPlayer.GetBaseInfoPos();

            mGameInteractionView.AddOneInteractionFace(from, to, chat);
        }
    }