lvjincheng 4 лет назад
Родитель
Сommit
b472bf569f
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      Assets/BowArrow/Scripts/View/PKMatchView.cs

+ 4 - 4
Assets/BowArrow/Scripts/View/PKMatchView.cs

@@ -74,10 +74,10 @@ public class PKMatchView : MonoBehaviour
         this.transform.Find("BoxRight/BtnMatch").GetComponent<Button>().onClick.AddListener(() => {
             AudioMgr.ins.PlayBtn();
             GlobalData.pkMatchType = GlobalDataTemp.pkMatchType;
-            GlobalData.matchRoomType = GlobalDataTemp.matchRoomType;
+            GlobalData.matchGameType = GlobalDataTemp.matchGameType;
             PKMatchingView pkMatchingView = PKMatchingView.Create();
             if (curBtnTabIndex == 1) {
-                pkMatchingView.pkFriendInfoPack = selectedFriendInfo;
+                pkMatchingView.targetInvitePlayerID = selectedFriendInfo.playerID;
                 pkMatchingView.isFriendPKInviter = true;
             }
         });
@@ -141,7 +141,7 @@ public class PKMatchView : MonoBehaviour
         GameObject GetFriendSelectItemPrefab() {
             return GetFriendSelectItemParent().Find("Item").gameObject;
         }
-        PKFriendInfoPack selectedFriendInfo = null;
+        MatchPlayerInfo selectedFriendInfo = null;
         void EnterFriendSelectView() {
             friendSelectView.SetActive(true);
             for (int i = 1; i < GetFriendSelectItemParent().childCount; i++) {
@@ -164,7 +164,7 @@ public class PKMatchView : MonoBehaviour
                         btnPK.onClick.RemoveAllListeners();
                         btnPK.onClick.AddListener(delegate() {
                             btnEvent_CloseFriendSelectView();
-                            selectedFriendInfo = new PKFriendInfoPack(friendID, avatarID, nickname);
+                            selectedFriendInfo = new MatchPlayerInfo(friendID, avatarID, nickname);
                             RefreshBtnMatch();
                             RefreshOtherPlayerInfoRender();
                         });