Browse Source

matchGameType

lvjincheng 3 years ago
parent
commit
d8d6fbcd65
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Assets/BowArrow/Scripts/View/ChallengeOptionView.cs

+ 5 - 5
Assets/BowArrow/Scripts/View/ChallengeOptionView.cs

@@ -16,11 +16,11 @@ public class ChallengeOptionView : MonoBehaviour
     public void StartGame(int gameType) {
         AudioMgr.ins.PlayBtn();
         if (GlobalDataTemp.pkMatchType == PKMatchType.OnlinePK) {
-            int roomType = 0;
-            if (gameType == 3) roomType = 1;
-            else if (gameType == 4) roomType = 2;
-            else if (gameType == 5) roomType = 3;
-            GlobalDataTemp.matchRoomType = roomType;
+            int newGameType = 0;
+            if (gameType == 3) newGameType = 10;
+            else if (gameType == 4) newGameType = 11;
+            else if (gameType == 5) newGameType = 12;
+            GlobalDataTemp.matchGameType = newGameType;
             GameObject.Instantiate(GameObject.Find("WindowViews").transform.Find("PKMatchView").gameObject).SetActive(true);
             return;   
         }