/// <summary> /// 出牌 /// </summary> /// <param name="pos"></param> /// <param name="pokers"></param> public void PlayPoker(SeatEntity seat, List <Poker> pokers, PokersType pokerType) { List <PokerCtrl> playPoker = PrefabManager.Instance.PlayPokers(seat.Pos, pokers, seat == RoomPaoDeKuaiProxy.Instance.PlayerSeat); m_UIScenePaoDeKuaiView.PlayPokers(seat.Index, playPoker, pokerType); }
public void SetUI(SeatEntity seat) { m_SeatPos = seat.Pos; SetPlayerInfo(seat); }
/// <summary> /// 开局 /// </summary> /// <param name="seatList"></param> /// <param name="isPlayAnimation"></param> public void Begin(RoomEntity.RoomStatus rommStatus, List <SeatEntity> seatList, bool isPlayAnimation, SeatEntity SpadesThreeSeat, System.Action OnComplete) { int index = SpadesThreeSeat == null ? 0 : SpadesThreeSeat.Index; for (int i = 0; i < seatList.Count; ++i) { if (seatList[i] == null || seatList[i].PlayerId <= 0) { continue; } List <PokerCtrl> pokerList = PrefabManager.Instance.GetHand(seatList[i].Pos); if (pokerList != null) { m_Seats[seatList[i].Index].Begin(pokerList, isPlayAnimation); } } if (isPlayAnimation) { m_IsBeginAni = true; //黑桃3动画 UIItemNameSpades3 string path = string.Format("download/{0}/prefab/uiprefab/UIItems/{1}.drb", ConstDefine.GAME_NAME, ConstDefine_PaoDeKuai.UIItemNameSpades3); AssetBundleManager.Instance.LoadOrDownload(path, ConstDefine_PaoDeKuai.UIItemNameSpades3, (GameObject go) => { Debug.Log(go.name); if (go != null) { go = Instantiate(go); go.SetParent(m_EffectContainer); go.GetComponent <UIItemPDKSpadesThree>().SetUI(index, OnComplete); } }); } else { if (OnComplete != null) { OnComplete(); } } //PlayUIAnimation(""); }