public void OnSendUserInfo()//玩家数据改变发送
 {
     HallTransfer.MySelfInfo tempInfo = new HallTransfer.MySelfInfo();
     tempInfo.dwUserId      = GameApp.GameData.UserInfo.UserID;
     tempInfo.dwNickName    = GameApp.GameData.UserInfo.NickName;
     tempInfo.dwMoney       = GameApp.GameData.UserInfo.CurMoney;
     tempInfo.dwLockMathine = GameApp.GameData.UserInfo.MoorMachine;
     tempInfo.dwVip         = GameApp.GameData.UserInfo.Vip;
     tempInfo.dwRoomID      = GameApp.GameData.EnterRoomID;
     tempInfo.dwDeskNo      = GameApp.GameData.UserInfo.LastDeskNO;
     tempInfo.dwDeskStation = GameApp.GameData.UserInfo.LastDeskStation;
     tempInfo.dwInsureMoney = GameApp.GameData.UserInfo.CurBank;
     if (GameApp.GameData.UserInfo.HeadId == 0)
     {
         if (!GameApp.GameData.UserInfo.IsBoy)
         {
             tempInfo.dwHeadID = 1;
         }
         else
         {
             tempInfo.dwHeadID = 0;
         }
     }
     else
     {
         tempInfo.dwHeadID = GameApp.GameData.UserInfo.HeadId;
     }
     HallTransfer.Instance.cnSetUserInfo(tempInfo);//发送玩家数据
 }
        //==================================================================================================


        public void SetUserInfo(HallTransfer.MySelfInfo mySelfInfo)
        {
            Debug.LogWarning("!!!!!!!!!!!!!SetUserInfo============================== " + mySelfInfo.dwMoney);

            if (hall_userInfo.userVip != null)
            {
                hall_userInfo.userVip.text = (mySelfInfo.dwVip == 0 ? "非会员" : "会员");
            }
            if (hall_userInfo.userNickName != null)
            {
                hall_userInfo.userNickName.text = mySelfInfo.dwNickName;
            }
            if (hall_userInfo.userGameId != null)
            {
                hall_userInfo.userGameId.text = mySelfInfo.dwUserId.ToString();
            }
            foreach (UILabel tempMoneyLabel in hall_userInfo.userMoney)
            {
                tempMoneyLabel.text = mySelfInfo.dwMoney >= 0 ? mySelfInfo.dwMoney.ToString("N0") : "0";
            }
            if (hall_userInfo.userFace != null)
            {
                hall_userInfo.userFace.spriteName = "face_" + mySelfInfo.dwHeadID;
            }
            int tempSex = (int)mySelfInfo.dwHeadID % 2;

            //for(int i = 0; i < UserFaceBtns.Length;i++)
            //{
            //	UserFaceBtns[i].faceId = (uint)((i+1)*2+tempSex);
            //	if(UserFaceBtns[i].GetComponent<UISprite>()!=null)
            //	{
            //		UserFaceBtns[i].GetComponent<UISprite>().spriteName = "face_" + ((i+1)*2+tempSex).ToString();
            //	}
            //}

            // 休闲PC版银行金币可开关.其他版本照常.
            if (showUserBankMoney._instance == null)
            {
                if (hall_userInfo.userBank != null)
                {
                    hall_userInfo.userBank.text = mySelfInfo.dwInsureMoney.ToString();
                }
            }
            else
            {
                showUserBankMoney._instance.m_lBankMoney = mySelfInfo.dwInsureMoney;
                showUserBankMoney._instance.ShowUserBank();
            }

            bool tempLock = false;

            if (mySelfInfo.dwLockMathine == 1)
            {
                tempLock = true;
            }
            HallTransfer.Instance.uiConfig.LockOrUnLockAccount = tempLock;
            for (var j = 0; j < HallTransfer.Instance.uiConfig.hallGameRoomIds.Length; j++)
            {
                if (mySelfInfo.dwRoomID == HallTransfer.Instance.uiConfig.hallGameRoomIds[j])
                {
                    HallTransfer.Instance.uiConfig.curRoomName = HallTransfer.Instance.uiConfig.hallGameRoomNames[j];
                    break;
                }
            }
            HallTransfer.Instance.uiConfig.curRoomId  = mySelfInfo.dwRoomID;
            HallTransfer.Instance.uiConfig.curDeskNo  = mySelfInfo.dwDeskNo;
            HallTransfer.Instance.uiConfig.curStation = mySelfInfo.dwDeskStation;

            //返回玩家上次游戏进入的桌子列表
            if (mySelfInfo.dwDeskNo != 0)
            {
                if (CGameDeskManger._instance.GetComponentInChildren <UIScrollBar>() != null)
                {
                    float tempVal = (float)mySelfInfo.dwDeskNo / (float)CGameDeskManger._instance.m_lstGameDeskList.Count;
                    CGameDeskManger._instance.GetComponentInChildren <UIScrollBar>().value = tempVal;
                }
                if (CChairManger._instance != null)
                {
                    if (CGameDeskManger._instance.m_lstGameDeskList.Count >= mySelfInfo.dwDeskNo + 1)
                    {
                        if (CGameDeskManger._instance.m_lstGameDeskList[(int)mySelfInfo.dwDeskNo].GetComponent <CGameDeskItem>() != null)
                        {
                            CGameDeskManger._instance.m_lstGameDeskList[(int)mySelfInfo.dwDeskNo].GetComponent <CGameDeskItem>().OnClick();
                        }
                    }
                }
            }
        }