void OnGUI() { //var oldcolor = GUI.color; //cardSlot0 = mon.charData2[game.cardSlot[0], 1] + "\n(" + mon.charData2[game.cardSlot[0], 3] + ")"; //cardSlot1 = mon.charData2[game.cardSlot[1], 1] + "\n(" + mon.charData2[game.cardSlot[1], 3] + ")"; //cardSlot2 = mon.charData2[game.cardSlot[2], 1] + "\n(" + mon.charData2[game.cardSlot[2], 3] + ")"; //cardSlot3 = mon.charData2[game.cardSlot[3], 1] + "\n(" + mon.charData2[game.cardSlot[3], 3] + ")"; //cardSlot4 = mon.charData2[game.cardSlot[4], 1] + "\n(" + mon.charData2[game.cardSlot[4], 3] + ")"; //if (game.checkremainTurncardslot[0] == false || game.remainturncardslot[0] == 0) //{ // GUI.color = new Color32(255, 127, 0, 255); // if (GUI.Button(new Rect(10, 10, 150, 100), cardSlot0)) // { // game.checkremainTurncardslot[0] = !game.checkremainTurncardslot[0]; // } //} //else //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(10, 10, 150, 100), cardSlot0)) // { // game.checkremainTurncardslot[0] = !game.checkremainTurncardslot[0]; // } //} //if (game.checkremainTurncardslot[1] == false || game.remainturncardslot[1] == 0) //{ // GUI.color = new Color32(255, 127, 0, 255); // if (GUI.Button(new Rect(160, 10, 150, 100), cardSlot1)) // { // game.checkremainTurncardslot[1] = !game.checkremainTurncardslot[1]; // } //} //else //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(160, 10, 150, 100), cardSlot1)) // { // game.checkremainTurncardslot[1] = !game.checkremainTurncardslot[1]; // } //} //if (game.checkremainTurncardslot[2] == false || game.remainturncardslot[2] == 0) //{ // GUI.color = new Color32(255, 127, 0, 255); // if (GUI.Button(new Rect(310, 10, 150, 100), cardSlot2)) // { // game.checkremainTurncardslot[2] = !game.checkremainTurncardslot[2]; // } //} //else //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(310, 10, 150, 100), cardSlot2)) // { // game.checkremainTurncardslot[2] = !game.checkremainTurncardslot[2]; // } //} //if (game.checkremainTurncardslot[3] == false || game.remainturncardslot[3] == 0) //{ // GUI.color = new Color32(255, 127, 0, 255); // if (GUI.Button(new Rect(460, 10, 150, 100), cardSlot3)) // { // game.checkremainTurncardslot[3] = !game.checkremainTurncardslot[3]; // } //} //else //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(460, 10, 150, 100), cardSlot3)) // { // game.checkremainTurncardslot[3] = !game.checkremainTurncardslot[3]; // } //} //if (game.checkremainTurncardslot[4] == false || game.remainturncardslot[4] == 0) //{ // GUI.color = new Color32(255, 127, 0, 255); // if (GUI.Button(new Rect(610, 10, 150, 100), cardSlot4)) // { // game.checkremainTurncardslot[4] = !game.checkremainTurncardslot[4]; // } //} //else //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(610, 10, 150, 100), cardSlot4)) // { // game.checkremainTurncardslot[4] = !game.checkremainTurncardslot[4]; // } //} // GUI.Button(new Rect(820, 10, 150, 100), "Duo : " + game.makecounthistory[2] + "\n Trio : " + game.makecounthistory[3] +"\n Quartet : " + game.makecounthistory[4] + "\n Quintet : " + game.makecounthistory[5]); //if (game.skillPoint >= 100 && !game.skillOnCheck[0] == true) //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(800, 150, 190, 70), "Skill(100) : Cute\n" + "\n 다음 턴까지 Cute 타입 \n아이돌만 등장합니다. ")) // { // game.skillPoint = game.skillPoint - 100; // game.skillOnCheck[0] = true; // game.skillOnCheck[1] = false; // game.skillOnCheck[2] = false; // } //} //if (game.skillOnCheck[0] == true) //{ // GUI.color = Color.yellow; // GUI.Button(new Rect(800, 150, 190, 70), "Cute 스킬 발동 중!\n" + "\n 다음 턴까지 Cute 타입 \n아이돌만 등장합니다. "); //} //if (game.skillPoint >= 100 && !game.skillOnCheck[1] == true) //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(800, 230, 190, 70), "Skill(100) : Cool\n" + "\n 다음 턴까지 Cool 타입 \n아이돌만 등장합니다. ")) // { // game.skillPoint = game.skillPoint - 100; // game.skillOnCheck[0] = false; // game.skillOnCheck[1] = true; // game.skillOnCheck[2] = false; // } //} //if (game.skillOnCheck[1] == true) //{ // GUI.color = Color.yellow; // GUI.Button(new Rect(800, 230, 190, 70), "Cool 스킬 발동 중!\n" + "\n 다음 턴까지 Cool 타입 \n아이돌만 등장합니다. "); //} //if (game.skillPoint >= 100 && !game.skillOnCheck[2] == true) //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(800, 310, 190, 70), "Skill(100) : Passion\n" + "\n 다음 턴까지 Passion 타입 \n아이돌만 등장합니다. ")) // { // game.skillPoint = game.skillPoint - 100; // game.skillOnCheck[0] = false; // game.skillOnCheck[1] = false; // game.skillOnCheck[2] = true; // } //} //if (game.skillOnCheck[2] == true) //{ // GUI.color = Color.yellow; // GUI.Button(new Rect(800, 310, 190, 70), "Passion 스킬 발동 중!\n" + "\n 다음 턴까지 Passion 타입 \n아이돌만 등장합니다. "); //} //if (game.skillPoint >= 300 && !game.skillOnCheck[3] == true) //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(800, 390, 190, 70), "Skill(300) : Sixteen \n" + "\n 다음 턴까지 16세 이하 \n아이돌만 등장합니다. ")) // { // game.skillPoint = game.skillPoint - 300; // game.skillOnCheck[3] = true; // game.skillOnCheck[4] = false; // } //} //if (game.skillOnCheck[3] == true) //{ // GUI.color = Color.yellow; // GUI.Button(new Rect(800, 390, 190, 70), "Sixteen 스킬 발동 중!\n" + "\n 다음 턴까지 16세 이하 \n아이돌만 등장합니다. "); //} //if (game.skillPoint >= 300 && !game.skillOnCheck[4] == true) //{ // GUI.color = oldcolor; // if (GUI.Button(new Rect(800, 470, 190, 70), "Skill (300) : Seventeen\n" + "\n 다음 턴까지 17세 이상 \n아이돌만 등장합니다. ")) // { // game.skillPoint = game.skillPoint - 300; // game.skillOnCheck[3] = false; // game.skillOnCheck[4] = true; // } //} //if (game.skillOnCheck[4] == true) //{ // GUI.color = Color.yellow; // GUI.Button(new Rect(800, 470, 190, 70), "Seventeen 스킬 발동 중!\n" + "\n 다음 턴까지 17세 이상 \n아이돌만 등장합니다. "); //} //if (game.madeSlotList.Count != 0) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str0 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[0]]) // { // str0.Append(mon.unitData2[game.madeSlotList[0], 1]); // } // else // { // str0.Append("?아직 데뷰하지 않은 유닛?"); // } // str0.Append(" : "); // str0.Append(mon.unitData2[game.madeSlotList[0], 9]); // str0.Append(" "); // str0.Append(mon.unitData2[game.madeSlotList[0], 10]); // str0.Append(" "); // str0.Append(mon.unitData2[game.madeSlotList[0], 11]); // str0.Append(" "); // str0.Append(mon.unitData2[game.madeSlotList[0], 12]); // str0.Append(" "); // str0.Append(mon.unitData2[game.madeSlotList[0], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // GUI.color = Color.green; // if (GUI.Button(new Rect(10, 350, 750, 40), str0.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[0]); // } //} //if (game.madeSlotList.Count > 1) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str1 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[1]]) // { // str1.Append(mon.unitData2[game.madeSlotList[1], 1]); // } // else // { // str1.Append("?아직 데뷰하지 않은 유닛?"); // } // str1.Append(" : "); // str1.Append(mon.unitData2[game.madeSlotList[1], 9]); // str1.Append(" "); // str1.Append(mon.unitData2[game.madeSlotList[1], 10]); // str1.Append(" "); // str1.Append(mon.unitData2[game.madeSlotList[1], 11]); // str1.Append(" "); // str1.Append(mon.unitData2[game.madeSlotList[1], 12]); // str1.Append(" "); // str1.Append(mon.unitData2[game.madeSlotList[1], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // if (GUI.Button(new Rect(10, 400, 750, 40), str1.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[1]); // } //} //if (game.madeSlotList.Count > 2) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str2 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[2]]) // { // str2.Append(mon.unitData2[game.madeSlotList[2], 1]); // } // else // { // str2.Append("?아직 데뷰하지 않은 유닛?"); // } // str2.Append(" : "); // str2.Append(mon.unitData2[game.madeSlotList[2], 9]); // str2.Append(" "); // str2.Append(mon.unitData2[game.madeSlotList[2], 10]); // str2.Append(" "); // str2.Append(mon.unitData2[game.madeSlotList[2], 11]); // str2.Append(" "); // str2.Append(mon.unitData2[game.madeSlotList[2], 12]); // str2.Append(" "); // str2.Append(mon.unitData2[game.madeSlotList[2], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // if (GUI.Button(new Rect(10, 450, 750, 40), str2.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[2]); // } //} //if (game.madeSlotList.Count > 3) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str3 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[3]]) // { // str3.Append(mon.unitData2[game.madeSlotList[3], 1]); // } // else // { // str3.Append("?아직 데뷰하지 않은 유닛?"); // } // str3.Append(" : "); // str3.Append(mon.unitData2[game.madeSlotList[3], 9]); // str3.Append(" "); // str3.Append(mon.unitData2[game.madeSlotList[3], 10]); // str3.Append(" "); // str3.Append(mon.unitData2[game.madeSlotList[3], 11]); // str3.Append(" "); // str3.Append(mon.unitData2[game.madeSlotList[3], 12]); // str3.Append(" "); // str3.Append(mon.unitData2[game.madeSlotList[3], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // if (GUI.Button(new Rect(10, 500, 750, 40), str3.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[3]); // } //} //if (game.madeSlotList.Count > 4) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str4 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[4]]) // { // str4.Append(mon.unitData2[game.madeSlotList[4], 1]); // } // else // { // str4.Append("?아직 데뷰하지 않은 유닛?"); // } // str4.Append(" : "); // str4.Append(mon.unitData2[game.madeSlotList[4], 9]); // str4.Append(" "); // str4.Append(mon.unitData2[game.madeSlotList[4], 10]); // str4.Append(" "); // str4.Append(mon.unitData2[game.madeSlotList[4], 11]); // str4.Append(" "); // str4.Append(mon.unitData2[game.madeSlotList[4], 12]); // str4.Append(" "); // str4.Append(mon.unitData2[game.madeSlotList[4], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // if (GUI.Button(new Rect(10, 550, 750, 40), str4.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[4]); // } //} //if (game.madeSlotList.Count > 5) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str5 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[5]]) // { // str5.Append(mon.unitData2[game.madeSlotList[5], 1]); // } // else // { // str5.Append("?아직 데뷰하지 않은 유닛?"); // } // str5.Append(" : "); // str5.Append(mon.unitData2[game.madeSlotList[5], 9]); // str5.Append(" "); // str5.Append(mon.unitData2[game.madeSlotList[5], 10]); // str5.Append(" "); // str5.Append(mon.unitData2[game.madeSlotList[5], 11]); // str5.Append(" "); // str5.Append(mon.unitData2[game.madeSlotList[5], 12]); // str5.Append(" "); // str5.Append(mon.unitData2[game.madeSlotList[5], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // if (GUI.Button(new Rect(10, 600, 750, 40), str5.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[5]); // } //} //if (game.madeSlotList.Count > 6) //{ // //mon = GameObject.Find("GameObj").GetComponent<Monster>(); // StringBuilder str6 = new StringBuilder(); // if (game.unitDebutHistory[game.madeSlotList[6]]) // { // str6.Append(mon.unitData2[game.madeSlotList[6], 1]); // } // else // { // str6.Append("?아직 데뷰하지 않은 유닛?"); // } // str6.Append(" : "); // str6.Append(mon.unitData2[game.madeSlotList[6], 9]); // str6.Append(" "); // str6.Append(mon.unitData2[game.madeSlotList[6], 10]); // str6.Append(" "); // str6.Append(mon.unitData2[game.madeSlotList[6], 11]); // str6.Append(" "); // str6.Append(mon.unitData2[game.madeSlotList[6], 12]); // str6.Append(" "); // str6.Append(mon.unitData2[game.madeSlotList[6], 13]); // //Debug.Log(mon.unitData2[game.madeSlotList[0] + 1, 1]); // //string aa = Convert.ToString(game.madeSlotList[0]); // if (GUI.Button(new Rect(10, 600, 750, 40), str6.ToString())) // { // game.PassTurnWithMake(game.madeSlotList[6]); // } //} //if (game.madeSlotList.Count > 4) //{ // thirdcheck = true; //} if (game.madeSlotList.Count > 8 && game.thirdcheck == false) { game.thirdcheck = true; Debug.Log(game.madeSlotList.Count); for (int i = 8; i < game.madeSlotList.Count; i++) { Debug.Log(mon.unitData2[game.madeSlotList[i], 1]); } } //if (game.checkremainTurncardslot[0] == false || game.remainturncardslot[0] == 0 // || game.checkremainTurncardslot[1] == false || game.remainturncardslot[1] == 0 // || game.checkremainTurncardslot[2] == false || game.remainturncardslot[2] == 0 // || game.checkremainTurncardslot[3] == false || game.remainturncardslot[3] == 0 // || game.checkremainTurncardslot[4] == false || game.remainturncardslot[4] == 0) //{ // GUI.color = oldcolor; // if (Input.GetKey(KeyCode.A) || GUI.Button(new Rect(280, 200, 250, 100), "버튼을 누르면 다음 턴이 진행됩니다." + "\n 변경할 멤버를 더 고를 수 있습니다.")) // { // if (game.thirdcheck == false) // { // game.madeSlotList.Clear(); // game.secondcheck = false; // } // } //} //else //{ // GUI.color = Color.red; // GUI.Button(new Rect(280, 200, 250, 100), "변경할 멤버를 고르세요."); //} //if (Input.GetKey(KeyCode.E)) //{ // game.score = game.score + 100; //} if (Input.GetKey(KeyCode.W)) { if (game.madeSlotList.Count != 0 && Convert.ToInt32(mon.unitData2[game.madeSlotList[0], 14]) > 2) { //Debug.Log("YOU MADE : " + game.madeSlotList[0]); game.PassTurnWithMake(game.madeSlotList[0]); } else if (game.madeSlotList.Count > 1 && Convert.ToInt32(mon.unitData2[game.madeSlotList[1], 14]) > 1) { //Debug.Log("YOU MADE : " + game.madeSlotList[1]); game.PassTurnWithMake(game.madeSlotList[1]); } else if (game.madeSlotList.Count > 2 && Convert.ToInt32(mon.unitData2[game.madeSlotList[2], 14]) > 1) { //Debug.Log("YOU MADE : " + game.madeSlotList[2]); game.PassTurnWithMake(game.madeSlotList[2]); } else if (game.madeSlotList.Count > 3 && Convert.ToInt32(mon.unitData2[game.madeSlotList[3], 14]) > 3) { //Debug.Log("YOU MADE : " + game.madeSlotList[3]); game.PassTurnWithMake(game.madeSlotList[3]); } else if (game.madeSlotList.Count > 4 && Convert.ToInt32(mon.unitData2[game.madeSlotList[4], 14]) > 3) { //Debug.Log("YOU MADE : " + game.madeSlotList[4]); game.PassTurnWithMake(game.madeSlotList[4]); } else if (game.madeSlotList.Count > 5 && Convert.ToInt32(mon.unitData2[game.madeSlotList[5], 14]) > 3) { //Debug.Log("YOU MADE : " + game.madeSlotList[5]); game.PassTurnWithMake(game.madeSlotList[5]); } else { game.checkremainTurncardslot[0] = false; if (game.thirdcheck == false) { game.madeSlotList.Clear(); game.secondcheck = false; } } } if (Input.GetKey(KeyCode.R) && Input.GetKey(KeyCode.T) && Input.GetKey(KeyCode.Y)) { DI.DataReset(); game.score = DI.GetExp(); game.level = DI.GetLV(); game.totalTurn = DI.GetTotalTurn(); if (DI.GetBasicRemainTurn() != 0) { game.basicRemainTurn = DI.GetBasicRemainTurn(); } game.maxCombo = DI.GetMaxCombo(); game.makecounthistory[2] = DI.GetMakeCountHistory2(); game.makecounthistory[3] = DI.GetMakeCountHistory3(); game.makecounthistory[4] = DI.GetMakeCountHistory4(); game.makecounthistory[5] = DI.GetMakeCountHistory5(); game.checkExp(); game.charDearDegree = new int[mon.charcount]; game.charCardRank = new int[mon.charcount]; game.pointCanDrawCard = 0; game.countDrawCardwithoutSSR = 0; game.unitDebutHistory = new bool[mon.unitcount]; //PlayerPrefs.DeleteAll(); PlayerPrefs.DeleteKey("TwitterUserID"); PlayerPrefs.DeleteKey("TwitterUserScreenName"); PlayerPrefs.DeleteKey("TwitterUserToken"); PlayerPrefs.DeleteKey("TwitterUserTokenSecret"); Debug.Log("Game Data Reset" + game.score); Application.LoadLevel(Application.loadedLevel); } //GUI.color = oldcolor; //int requireLevelup = Convert.ToInt32(mon.expLvData2[game.level + 1, 2]) - game.score; //GUI.color = new Color32(255, 220, 55, 255); //GUI.Button(new Rect(100, 200, 150, 100), "SP : " + Convert.ToInt32(game.skillPoint) + "\n Score : " + game.score + " (" + requireLevelup + ") "+ "\n Level : " + game.level + "\n MaxCombo : " + game.maxCombo + "\n TotalTurn : " + game.totalTurn); //if (game.combocount != 0) //{ // GUI.Button(new Rect(560, 200, 200, 100), "ComboCount : " + game.combocount + " " + finishWord); //} //GUI.color = oldcolor; //if (game.madeSlotList.Count == 0) //{ // finishWord = "Done!"; //} //else //{ // finishWord = ""; //} if (game.thirdcheck == true) { if (GUI.Button(new Rect(500, 200, 150, 100), "Restart!")) { Application.LoadLevel(Application.loadedLevel); } } //if (game.remainturncardslot[0] == 0) //{ // GUI.color = Color.red; // GUI.Box(new Rect(10, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[0]); //} //else //{ // GUI.color = oldcolor; // GUI.Box(new Rect(10, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[0]); //} //if (game.remainturncardslot[1] == 0) //{ // GUI.color = Color.red; // GUI.Box(new Rect(160, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[1]); //} //else //{ // GUI.color = oldcolor; // GUI.Box(new Rect(160, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[1]); //} //if (game.remainturncardslot[2] == 0) //{ // GUI.color = Color.red; // GUI.Box(new Rect(310, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[2]); //} //else //{ // GUI.color = oldcolor; // GUI.Box(new Rect(310, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[2]); //} //if (game.remainturncardslot[3] == 0) //{ // GUI.color = Color.red; // GUI.Box(new Rect(460, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[3]); //} //else //{ // GUI.color = oldcolor; // GUI.Box(new Rect(460, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[3]); //} //if (game.remainturncardslot[4] == 0) //{ // GUI.color = Color.red; // GUI.Box(new Rect(610, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[4]); //} //else //{ // GUI.color = oldcolor; // GUI.Box(new Rect(610, 120, 150, 25), "남은 턴 : " + game.remainturncardslot[4]); //} }
void ReadInIData() { charDearDegreeEncodedString1 = DI.GetCharDearDegreeString(); if (charDearDegreeEncodedString1 != "") { JSONObject charDearJson = new JSONObject(charDearDegreeEncodedString1); //Debug.Log("CharDear : " + charDearDegreeEncodedString1); dAJ.accessData(charDearJson); JSONObject arr1 = charDearJson["DearDegree"]; //Debug.Log(arr1[1].n); for (int i = 1; i < mon.charcount; i++) { try { charDearDegree[i] = Convert.ToInt32(arr1[i].n); } catch { Debug.Log("nullException?? Character!!"); } } } unitDebutHistoryEncodedString1 = DI.GetUnitDebutHistoryString(); if (unitDebutHistoryEncodedString1 != "") { //Debug.Log("UnitDebut : " + unitDebutHistoryEncodedString1); JSONObject unitDebutJson = new JSONObject(unitDebutHistoryEncodedString1); dAJ.accessData(unitDebutJson); JSONObject arr2 = unitDebutJson["DebutHistory"]; //Debug.Log(arr2[1].n); for (int i = 1; i < mon.unitcount; i++) { try { unitDebutHistory[i] = arr2[i].b; } catch { Debug.Log("nullException?? Unit!!"); } } } charCardRankEncodedString1 = DI.GetCharCardRankString(); if (charCardRankEncodedString1 != "") { //Debug.Log("UnitDebut : " + unitDebutHistoryEncodedString1); JSONObject cardRankJson = new JSONObject(charCardRankEncodedString1); dAJ.accessData(cardRankJson); JSONObject arr3 = cardRankJson["CharCardRank"]; //Debug.Log(arr2[1].n); for (int i = 1; i < mon.charcount; i++) { try { charCardRank[i] = Convert.ToInt32(arr3[i].n); } catch { Debug.Log("nullException?? CharCardRank"); } } } score = DI.GetExp(); level = DI.GetLV(); countDrawCardwithoutSSR = DI.GetCountDrawCardwithoutSSR(); pointCanDrawCard = DI.GetPointCanDrawCard(); if (level == 0) { level = 1; } totalTurn = DI.GetTotalTurn(); if (DI.GetBasicRemainTurn() != 0) { basicRemainTurn = DI.GetBasicRemainTurn(); } maxCombo = 0; maxCombo = DI.GetMaxCombo(); remainturncardslot = new int[5]; makecounthistory = new int[6]; makecounthistory[2] = DI.GetMakeCountHistory2(); makecounthistory[3] = DI.GetMakeCountHistory3(); makecounthistory[4] = DI.GetMakeCountHistory4(); makecounthistory[5] = DI.GetMakeCountHistory5(); }