|
|
@@ -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;
|
|
|
}
|