public void Barterbanker(Game2PositionPlayerInfoDto playerRoomBaseInfoDto) { //更换庄家名称等各项信息 Banker.GetChild(0).GetComponent <Text>().text = playerRoomBaseInfoDto.userName; Banker.GetChild(1).GetComponent <Text>().text = playerRoomBaseInfoDto.gold.ToString(); if (playerRoomBaseInfoDto.vipLv > 0) { Banker.GetChild(4).GetComponent <Image>().sprite = VIPImages[playerRoomBaseInfoDto.vipLv - 1]; Banker.GetChild(4).gameObject.SetActive(true); } else { Banker.GetChild(4).gameObject.SetActive(false); } LoadHeadImgUtils.Instance.LoadHeadImg(Banker.GetChild(3).GetComponent <Image>(), playerRoomBaseInfoDto.headUrl); otherbankerGold = playerRoomBaseInfoDto.gold; account = playerRoomBaseInfoDto.uid; GameMove gameMove = MessageManager.GetInstance.GetUIDict <GameMove>(); if (playerRoomBaseInfoDto.uid == PlayerCache.loginInfo.uid) { //显示下庄按钮 gameMove.IsBanker(true); } else { //不显示下庄按钮 gameMove.IsBanker(false); } }
//系统庄家信息 public void Barterbanker() { //更换庄家名称等各项信息 Banker.GetChild(3).GetComponent <Image>().sprite = GameTools.Instance.GetSpite("Sprite/HeadImg/5"); Banker.GetChild(0).GetComponent <Text>().text = "乐点大庄家"; Banker.GetChild(1).GetComponent <Text>().text = "99999999999"; Banker.GetChild(4).GetComponent <Image>().sprite = VIPImages[24]; Banker.GetChild(4).gameObject.SetActive(true); GameMove gameMove = MessageManager.GetInstance.GetUIDict <GameMove>(); //不显示下庄按钮 gameMove.IsBanker(false); }
//自己下庄 public override void bankerDown2CallBack(bool callBackParam) { GameMove gameMove = MessageManager.GetInstance.GetUIDict <GameMove>(); gameMove.IsBanker(false); }