Beispiel #1
0
        /// <summary>
        /// 刷新玩家数据
        /// </summary>
        /// <param name="panel"></param>
        /// <param name="user"></param>
        private void RefreshSomeone(DuifenPlayerPanel panel, ISFSObject user)
        {
            if (panel.ReadyState)
            {
                if (user.ContainsKey("state") && user.GetBool("state"))
                {
                    int localSeat = panel.LocalSeat;
                    ReadyLocalSeatList.Add(localSeat);
                }
            }

            panel.ConnectMark.SetActive(!(user.ContainsKey("network") && user.GetBool("network")));
            panel.ShowUserInfo();

            if (user.ContainsKey("systemAuto"))
            {
                bool isAuto = user.GetBool("systemAuto");
                panel.OnGetAutoInfo(isAuto);
            }


            if (!App.GetGameData <DuifenGlobalData>().IsGameing) //如果游戏结束,不接受数据
            {
                return;
            }

            ShowOnesState(panel, user);
            ShowOnesBetVal(panel, user);
            ShowOnesCards(panel, user);
        }
Beispiel #2
0
        public override void UserReady(int localSeat, ISFSObject responseData)
        {
            base.UserReady(localSeat, responseData);
            var readyPanel = App.GameData.GetPlayer <DuifenPlayerPanel>(localSeat);

            if (App.GameData.SelfLocalSeat == localSeat)
            {
                Reset();
            }

            if (!ReadyLocalSeatList.Contains(localSeat))
            {
                ReadyLocalSeatList.Add(localSeat);
            }

            readyPanel.OnUserReady();
        }