소스 검색

matchGameType

lvjincheng 4 년 전
부모
커밋
d8d6fbcd65
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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;   
         }