Ejemplo n.º 1
0
    void UpdatePlayerPutCard(LocalNotification e) //只转箭头
    {
        ArgsPlayerPut args = e.param as ArgsPlayerPut;

        if (args != null)
        {
            var  selfId           = PlayerInfo.Instance.mPlayerPid;
            var  curPlayerPosType = RoomInfo.Instance.GetPlayerPosById(args.playerId);
            bool isJiefeng        = args.type == MsgActionType.MsgActionTypeJiefeng;
            bool isMustPutCard    = args.lastOperationId == selfId || isJiefeng;

            CheckShowYQTip(args.isYbq);
            ShowStatusBtn(args.playerId == PlayerInfo.Instance.mPlayerPid, isMustPutCard);
            SetArrowPlayer(curPlayerPosType);

            CheckPlayjiefengTween(isJiefeng, curPlayerPosType);

            if (args.playerId == selfId)
            {
                StartCoroutine(CheckAutoPlay());
            }

            playingView.ClearPutOutingCard(curPlayerPosType);
        }
    }
Ejemplo n.º 2
0
    void NotificaPlayerPut(ulong playerId, ulong lastOperationId, MsgActionType type, bool isYbq)
    {
        ArgsPlayerPut args = new ArgsPlayerPut();

        args.playerId        = playerId;
        args.lastOperationId = lastOperationId;
        args.type            = type;
        args.isYbq           = isYbq;
        NotificationCenter.Instance().PostDispatchEvent((uint)ENotificationMsgType.EPlayerPlayingStatus, args);
    }