//小结算 public virtual void SmallResult(FiveStar_SmallPlayerResult playerResult) { ScoreChang(playerResult.NowScore); ClearHand(); //清除手牌 HideMoCard(); //隐藏摸的牌 switch (playerResult.PlayerResultType) { case FiveStarPlayerResultType.FangChong: _FangChongCount++; //放冲次数 break; case FiveStarPlayerResultType.HuFangChong: _HuPaiCount++; //胡牌次数 break; case FiveStarPlayerResultType.ZiMoHu: _HuPaiCount++; //胡牌次数 _ZiMoCount++; //自摸次数 break; case FiveStarPlayerResultType.Normal: break; } ShowLiangCards(playerResult.Hands);//显示亮的牌 if (playerResult.PlayerResultType == FiveStarPlayerResultType.HuFangChong || playerResult.PlayerResultType == FiveStarPlayerResultType.ZiMoHu) { ShowWinCard(playerResult.WinCard);//显示赢的牌 } }
//初始化小结算玩家信息 public void InitSmallPlayerList() { Transform playerParentTrm = mPlayerInfoItemGo.transform.parent; for (int i = 0; i < 3; i++) { GameObject.Instantiate(mPlayerInfoItemGo, playerParentTrm); } FiveStar_SmallPlayerResult result = new FiveStar_SmallPlayerResult(); for (int i = 0; i < playerParentTrm.childCount; i++) { _smallPlayerInfos.Add(playerParentTrm.GetChild(i).AddItemIfHaveInit <SmallPlayerInfoItemGoItem, FiveStar_SmallPlayerResult>(result)); } }
//小结算 public override void SmallResult(FiveStar_SmallPlayerResult playerResult) { base.SmallResult(playerResult); }