public void DataLoad(DataVo data) //초기화 { if (data == null) // 데이터가 없는 경우 { //Debug.Log("데이터 초기화"); data = new DataVo(); data.Achive1 = "false"; data.Achive2 = "false"; data.Achive3 = "false"; data.Achive4 = "false"; data.Achive5 = "false"; data.Achive6 = "false"; } StringBuilder sb = new System.Text.StringBuilder(); JsonWriter writer = new JsonWriter(sb); writer.PrettyPrint = true; JsonMapper.ToJson(data, writer); JsonData saveData = sb.ToString(); if (!isExistFile) { var sr = File.CreateText(Application.dataPath.Replace("/Assets", "") + fileName); sr.WriteLine(saveData.ToString()); sr.Close(); } else { File.WriteAllText(Application.dataPath.Replace("/Assets", "") + fileName, saveData.ToString()); } }
//-------------------------------- //public static bool Achive1; public void AchiveStart() { // SetChellenge(); //Debug.Log(File.Exists(Application.dataPath.Replace("/Assets", "") + fileName)); if (File.Exists(Application.dataPath.Replace("/Assets", "") + fileName)) { StreamReader streamReader = new StreamReader(Application.dataPath.Replace("/Assets", "") + fileName); dataVo = JsonMapper.ToObject <DataVo>(streamReader.ReadToEnd()); // dataVoInput = dataVo; Achivements1 = bool.Parse(dataVo.Achive1); Achivements2 = bool.Parse(dataVo.Achive2); Achivements3 = bool.Parse(dataVo.Achive3); Achivements4 = bool.Parse(dataVo.Achive4); Achivements5 = bool.Parse(dataVo.Achive5); Achivements6 = bool.Parse(dataVo.Achive6); streamReader.Close(); } SetChellenge(); // Debug.Log(Achivements1); }
void Start() { // Screen.SetResolution(Screen.width, Screen.width * 9/16, true); Application.targetFrameRate = 55; FirstToTItle = true; chashItemNum = 0; chashPotionNum = 0; ChashItemType = new string[] { "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" }; //15개 ChashPotionType = new string[] { "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" }; //13개 if (!File.Exists(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName)) { dataVo = new DataVo(); DataLoad(); isExistFile = true; } else { StreamReader streamReader = new StreamReader(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName); dataVo = JsonMapper.ToObject <DataVo>(streamReader.ReadToEnd()); streamReader.Close(); DataLoad(dataVo); isExistFile = false; } }
//---데이터로드------------------------------- public void DataAccess(DataVo dataVo) { SkillPoints = int.Parse(dataVo.SaveSkillPoint); UpdataSkillPoints(); Skill1Level = int.Parse(dataVo.SaveSkill1Lev); Skill2Level = int.Parse(dataVo.SaveSkill2Lev); Skill3Level = int.Parse(dataVo.SaveSkill3Lev); Proficiency1 = float.Parse(dataVo.SaveSkill1Prof); Proficiency2 = float.Parse(dataVo.SaveSkill2Prof); Proficiency3 = float.Parse(dataVo.SaveSkill3Prof); ProfLoad(); SkillAnim1.enabled = false; SkillAnim2.enabled = false; SkillAnim3.enabled = false; UpdateSkillLevel(); UpdateSkillBtn(); SkillTime = GameObject.Find("TimeManager").GetComponent <TimeManager>(); Guage = GameObject.Find("AlchemyManager").GetComponent <AlchemyManager>(); AlchemyButton = GameObject.Find("AlchemyButton").GetComponent <BoxCollider>(); ArrowButtonCol0 = GameObject.Find("ArrowButton0").GetComponent <BoxCollider>(); ArrowButtonCol1 = GameObject.Find("ArrowButton1").GetComponent <BoxCollider>(); ArrowButtonCol2 = GameObject.Find("ArrowButton2").GetComponent <BoxCollider>(); ArrowButtonCol3 = GameObject.Find("ArrowButton3").GetComponent <BoxCollider>(); ArrowButtonCol4 = GameObject.Find("ArrowButton4").GetComponent <BoxCollider>(); }
public void ButtonStart() { if (File.Exists(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName)) { StreamReader streamReader = new StreamReader(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName); dataVo = JsonMapper.ToObject <DataVo>(streamReader.ReadToEnd()); streamReader.Close(); inputDay = int.Parse(dataVo.SaveDay) + 1; firstGame = bool.Parse(dataVo.isFirst); } if (File.Exists(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName)) { if (!firstGame) { Loadcollider.enabled = true; LoadbuttonScript.state = UIButtonColor.State.Normal; DayLabel.text = inputDay.ToString() + "일 차"; } else { Loadcollider.enabled = false; LoadbuttonScript.state = UIButtonColor.State.Disabled; DayLabel.text = ""; } } else { Loadcollider.enabled = false; LoadbuttonScript.state = UIButtonColor.State.Disabled; DayLabel.text = ""; } }
//------------포션리스트 로드------------- public void DataAccess(DataVo dataVo) { PoCount = int.Parse(dataVo.SavePotionNum); for (int index = 0; index < PoCount; index++) { LoadPoList(int.Parse(dataVo.SavePotions[index])); } }
public void DataAccess(DataVo dataVo) { MatCount = int.Parse(dataVo.SaveNum); for (int index = 0; index < MatCount; index++) { LoadMatList(int.Parse(dataVo.SaveItems[index])); } }
public void DataAccess(DataVo dataVo) { SaleingListIndex = int.Parse(dataVo.SalingNumSave); SList = new GameObject[SaleingListIndex]; Listy = 0f; TimeCheck = GameObject.Find("TimeManager").GetComponent <TimeManager>(); }
//public void connection() //{ // try // { // //https://and0329.tistory.com/entry/C-%EA%B3%BC-%EC%98%A4%EB%9D%BC%ED%81%B4-%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%B2%A0%EC%9D%B4%EC%8A%A4-%EC%97%B0%EB%8F%99-%EB%B0%A9%EB%B2%95 // foreach (string line in File.ReadLines("C:\\DEV\\server.txt", Encoding.UTF8)) // { // oraCon = line; // } // // 1 // //OracleConnection OraConn = new OracleConnection(oraCon); // //OraConn.Open();//디비 오픈 // //OracleDataAdapter oda = new OracleDataAdapter();//어댑터 생성자 // //oda.SelectCommand = new OracleCommand("SELECT USER_ID FROM DESIGN_PROGRAM", OraConn); // //DataTable d1 = new DataTable(); //데이터 저장공간 만들기 // //oda.Fill(d1);//데이터 저장공간에 데이터 집어넣음 // // 2 // //using (var conn = new OracleConnection(oraCon)) // //{ // // conn.Open(); // // conn.Close(); // //} // using (OracleConnection conn = new OracleConnection(oraCon)) // { // conn.Open(); // string sql = "SELECT * FROM PRODUCT_COMPONENT_VERSION"; // using (OracleCommand comm = new OracleCommand(sql, conn)) // { // using (OracleDataReader rdr = comm.ExecuteReader()) // { // while (rdr.Read()) // { // Console.WriteLine(rdr.GetString(0)); // } // } // } // } // } // catch (Exception exception) // { // MessageBox.Show(exception.Message); // } //} public List <DataVo> connection(string _val) { List <DataVo> resultList = new List <DataVo>(); try { foreach (string line in File.ReadLines("C:\\DEV\\server.txt", Encoding.UTF8)) { oraCon = line; } using (OracleConnection conn = new OracleConnection(oraCon)) { conn.Open(); string sql = new MyXMLReader().Read("sql"); OracleCommand comm = new OracleCommand(); comm.CommandType = CommandType.Text; comm.Connection = conn; comm.CommandText = sql; comm.Parameters.Add("val", _val); using (OracleDataReader rdr = comm.ExecuteReader()) { while (rdr.Read()) { // http://www.csharpstudy.com/Mistake/Article/20 DataVo vo = new DataVo() { EQP_ID = rdr.IsDBNull(0) == true ? " " : rdr.GetValue(0), EQP_NO = rdr.IsDBNull(1) == true ? " " : rdr.GetValue(1), STATE = rdr.IsDBNull(2) == true ? " " : rdr.GetValue(2), PLC_FLAG = rdr.IsDBNull(3) == true ? " " : rdr.GetValue(3), LOT_ID = rdr.IsDBNull(4) == true ? " " : rdr.GetValue(4), PROD_ORDER_NUMBER = rdr.IsDBNull(5) == true ? " " : rdr.GetValue(5), EQP_LOTSN = rdr.IsDBNull(6) == true ? " " : rdr.GetValue(6), EQP_LOTSN_SEQ = rdr.IsDBNull(7) == true ? " " : rdr.GetValue(7), EQP_BATCH_TYPE = rdr.IsDBNull(8) == true ? " " : rdr.GetValue(8), EQP_BATCH_ID = rdr.IsDBNull(9) == true ? " " : rdr.GetValue(9), START_QTY = rdr.IsDBNull(10) == true ? " " : rdr.GetValue(10), TRACKIN_DATE_TIME = rdr.IsDBNull(11) == true ? " " : rdr.GetValue(11), STD_QTY = rdr.IsDBNull(12) == true ? " " : rdr.GetValue(12), STD_VAL = rdr.IsDBNull(13) == true ? " " : rdr.GetValue(13), BATCH_TM = rdr.IsDBNull(14) == true ? " " : rdr.GetValue(14), SAMPLE_COUNT = rdr.IsDBNull(15) == true ? " " : rdr.GetValue(15), PART_NUMBER = rdr.IsDBNull(16) == true ? " " : rdr.GetValue(16) }; resultList.Add(vo); } } conn.Close(); } } catch (Exception exception) { MessageBox.Show(exception.Message); } return(resultList); }
//----------데이터로드-------------------------- public void DataAccess(DataVo dataVo) { Furniture1Level = int.Parse(dataVo.SaveFur1Lev); Furniture2Level = int.Parse(dataVo.SaveFur2Lev); Furniture3Level = int.Parse(dataVo.SaveFur3Lev); Alert = GameObject.Find("MessageManager").GetComponent <MessageManager>(); UpdateFurniture(); }
/* void Awake() * { * //Day = 19; * //Day = DataManager.SaveDay; * //Paused = false; * //PauseSet.SetActive(false); * PlayerStat = GameObject.Find("StatusManager").GetComponent<StatusManager>(); * MarchentTime = GameObject.Find("Marchent1Manager").GetComponent<MarchentManager>(); * StartCoroutine("PauseInputWait"); * // StartCoroutine("TimeFlow"); * }*/ //-데이터 로드------------------------ public void DataAccess(DataVo dataVo) { Day = int.Parse(dataVo.SaveDay); Paused = false; looktrueEnd = bool.Parse(dataVo.lookedEnd); PauseSet.SetActive(false); PlayerStat = GameObject.Find("StatusManager").GetComponent <StatusManager>(); MarchentTime = GameObject.Find("Marchent1Manager").GetComponent <MarchentManager>(); StartCoroutine("PauseInputWait"); }
// public int Outwater = 0, OutSilver = 0, OutGas = 0; // Use this for initialization /* void Start() * { * Fur1 = GameObject.Find("FurnitureManager").GetComponent<FurnitureManager>(); * StartCoroutine("OKWaterButton"); * StartCoroutine("ReadyFlaskButton"); * MaterialButtonUpdate(); * }*/ public void DataAccess(DataVo dataVo) { MaterialWaterNumber = int.Parse(dataVo.SaveBlue); MaterialQSilverNumber = int.Parse(dataVo.SaveRed); MaterialGasNumber = int.Parse(dataVo.SaveGas); Fur1 = GameObject.Find("FurnitureManager").GetComponent <FurnitureManager>(); StartCoroutine("OKWaterButton"); StartCoroutine("ReadyFlaskButton"); MaterialButtonUpdate(); }
public void LoadButtonClick() { SoundManager.sounds["Click (7)"].Play(); if (File.Exists(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName)) { StreamReader streamReader = new StreamReader(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName); dataVo = JsonMapper.ToObject <DataVo>(streamReader.ReadToEnd()); streamReader.Close(); isExistFile = false; loading = true; StartCoroutine("ScreenFadeOut"); StopCoroutine("BackButtonClick"); } }
//------------데이터로드 public void DataAccess(DataVo dataVo) { InfluenceProgress = GameObject.Find("Influence").GetComponentsInChildren <UISprite>()[1]; Influence = int.Parse(dataVo.SaveInflu); Vector3 nextScale = InfluenceProgress.transform.localScale; nextScale.x = Influence / 100f; InfluenceProgress.transform.localScale = nextScale; StartCoroutine("MoveInfluenceNormal"); StartCoroutine("CheckInfluence"); }
// Start is called before the first frame update void Start() { //Debug.Log("데이터 로드 시작"); if (!File.Exists(Application.dataPath.Replace("/Assets", "") + fileName)) { dataVo = new DataVo(); DataLoad(null); isExistFile = true; } else { StreamReader streamReader = new StreamReader(Application.dataPath.Replace("/Assets", "") + fileName); dataVo = JsonMapper.ToObject <DataVo>(streamReader.ReadToEnd()); streamReader.Close(); DataLoad(dataVo); isExistFile = false; } achiveManager.AchiveStart(); }
/* void Awake() * { * if (DataManager.isLoaded) SpawnTerm = DataManager.SaveSpawnTime; * else SpawnTerm = 30f; * * UpPrice = 1; * commuManager = GameObject.Find("CommuManager").GetComponent<CommuManager>(); * CustomerNameLabel = SpeechBubble.GetComponentsInChildren<UILabel>()[0]; * CustomerOrderLabel = SpeechBubble.GetComponentsInChildren<UILabel>()[1]; * //SpawnPoint = GameObject.Find("CustomerSpawnPoint").transform; * * Customers = new List<GameObject>(); * CustomersPos = new Vector3[4] { new Vector3(2f, 0f, -1f), new Vector3(4f, 0f, -1f), new Vector3(6f, 0f, -1f), new Vector3(8f, 0f, -1f) }; * * Length = DataManager.SpawnCus; * BossSpawn = DataManager.SaveSpawnBoss; * * SpawnCount = 0; * //StartCoroutine("SpawnCustomer"); * }*/ //-데이터로드------------------------------------- public void DataAccess(DataVo dataVo) { SpawnTerm = float.Parse(dataVo.SaveSpawnTime); Length = int.Parse(dataVo.SpawnCus); BossSpawn = bool.Parse(dataVo.SaveSpawnBoss); UpPrice = 1; lastCus2 = 0; commuManager = GameObject.Find("CommuManager").GetComponent <CommuManager>(); CustomerNameLabel = SpeechBubble.GetComponentsInChildren <UILabel>()[0]; CustomerOrderLabel = SpeechBubble.GetComponentsInChildren <UILabel>()[1]; Customers = new List <GameObject>(); CustomersPos = new Vector3[4] { new Vector3(2f, 0f, -1f), new Vector3(4f, 0f, -1f), new Vector3(6f, 0f, -1f), new Vector3(8f, 0f, -1f) }; SpawnCount = 0; StartCoroutine("SpawnCustomer"); }
public void DataAccess(DataVo dataVo) { if (bool.Parse(dataVo.isFirst)) { SkipMovPos = new Vector3(0.0f, 0.8f, -11.0f); StartCoroutine("SkipSetMovind"); } else//로드했을때 { Community.NowFirstTalking = false; Destroy(FirstPerson); isTutorial = true; Player.Tutorial2 = true; Player.Tutorial3 = true; Player.Tutorial4 = true; Player.FirstMagic = true; FirstCus = true; PlayerBlock.enabled = false; StartCoroutine("InitTuto"); } }
public void DataAccess(DataVo dataVo) { Achivements1 = bool.Parse(dataVo.Achive1); Achivements2 = bool.Parse(dataVo.Achive2); Achivements3 = bool.Parse(dataVo.Achive3); Achivements4 = bool.Parse(dataVo.Achive4); Achivements5 = bool.Parse(dataVo.Achive5); Achivements6 = bool.Parse(dataVo.Achive6); SetChellenge(); }
//--------------------------------- // float speed = 5000; /* void Awake() * { * getBase = GameObject.Find("MaterialManager").GetComponent<MaterialManager>(); * StartCoroutine("GetPotion"); * * Potion1Num = DataManager.SavePotion1; * Potion2Num = DataManager.SavePotion2; * Potion3Num = DataManager.SavePotion3; * Potion4Num = DataManager.SavePotion4; * Potion5Num = DataManager.SavePotion5; * Potion6Num = DataManager.SavePotion6; * Potion7Num = DataManager.SavePotion7; * Potion8Num = DataManager.SavePotion8; * Potion9Num = DataManager.SavePotion9; * Potion10Num = DataManager.SavePotion10; * Potion11Num = DataManager.SavePotion11; * * }*/ //----데이터로드--------------------------------- public void DataAccess(DataVo dataVo) { getBase = GameObject.Find("MaterialManager").GetComponent <MaterialManager>(); StartCoroutine("GetPotion"); Potion1Num = int.Parse(dataVo.SavePotion1); Potion2Num = int.Parse(dataVo.SavePotion2); Potion3Num = int.Parse(dataVo.SavePotion3); Potion4Num = int.Parse(dataVo.SavePotion4); Potion5Num = int.Parse(dataVo.SavePotion5); Potion6Num = int.Parse(dataVo.SavePotion6); Potion7Num = int.Parse(dataVo.SavePotion7); Potion8Num = int.Parse(dataVo.SavePotion8); Potion9Num = int.Parse(dataVo.SavePotion9); Potion10Num = int.Parse(dataVo.SavePotion10); Potion11Num = int.Parse(dataVo.SavePotion11); Potion12Num = int.Parse(dataVo.SavePotion12); Potion13Num = int.Parse(dataVo.SavePotion13); Potion14Num = int.Parse(dataVo.SavePotion14); Potion15Num = int.Parse(dataVo.SavePotion15); FirstPotion1 = bool.Parse(dataVo.FirstPotion1); FirstPotion2 = bool.Parse(dataVo.FirstPotion2); FirstPotion3 = bool.Parse(dataVo.FirstPotion3); FirstPotion4 = bool.Parse(dataVo.FirstPotion4); FirstPotion5 = bool.Parse(dataVo.FirstPotion5); FirstPotion6 = bool.Parse(dataVo.FirstPotion6); FirstPotion7 = bool.Parse(dataVo.FirstPotion7); FirstPotion8 = bool.Parse(dataVo.FirstPotion8); FirstPotion9 = bool.Parse(dataVo.FirstPotion9); FirstPotion10 = bool.Parse(dataVo.FirstPotion10); FirstPotion11 = bool.Parse(dataVo.FirstPotion11); FirstPotion12 = bool.Parse(dataVo.FirstPotion12); FirstPotion13 = bool.Parse(dataVo.FirstPotion13); FirstPotion14 = bool.Parse(dataVo.FirstPotion14); FirstPotion15 = bool.Parse(dataVo.FirstPotion15); PoList.DataAccess(dataVo); }
/* void Awake() * { * StartCoroutine("GetMaterial"); * * haveHarb = DataManager.SaveItem1; * haveTomato = DataManager.SaveItem2; * haveItem3 = DataManager.SaveItem3; * haveItem4 = DataManager.SaveItem4; * haveItem5 = DataManager.SaveItem5; * haveItem6 = DataManager.SaveItem6; * haveItem7 = DataManager.SaveItem7; * haveItem8 = DataManager.SaveItem8; * haveItem9 = DataManager.SaveItem9; * haveItem10 = DataManager.SaveItem10; * haveItem11 = DataManager.SaveItem11; * haveItem12 = DataManager.SaveItem12; * haveItem13 = DataManager.SaveItem13; * haveItem14 = DataManager.SaveItem14; * }*/ //---------------데이터로드---------------- public void DataAccess(DataVo dataVo) { StartCoroutine("GetMaterial"); haveHarb = int.Parse(dataVo.SaveItem1); haveTomato = int.Parse(dataVo.SaveItem2); haveItem3 = int.Parse(dataVo.SaveItem3); haveItem4 = int.Parse(dataVo.SaveItem4); haveItem5 = int.Parse(dataVo.SaveItem5); haveItem6 = int.Parse(dataVo.SaveItem6); haveItem7 = int.Parse(dataVo.SaveItem7); haveItem8 = int.Parse(dataVo.SaveItem8); haveItem9 = int.Parse(dataVo.SaveItem9); haveItem10 = int.Parse(dataVo.SaveItem10); haveItem11 = int.Parse(dataVo.SaveItem11); haveItem12 = int.Parse(dataVo.SaveItem12); haveItem13 = int.Parse(dataVo.SaveItem13); haveItem14 = int.Parse(dataVo.SaveItem14); haveItem15 = int.Parse(dataVo.SaveItem15); FirstItem1 = bool.Parse(dataVo.FirstItem1); FirstItem2 = bool.Parse(dataVo.FirstItem2); FirstItem3 = bool.Parse(dataVo.FirstItem3); FirstItem4 = bool.Parse(dataVo.FirstItem4); FirstItem5 = bool.Parse(dataVo.FirstItem5); FirstItem6 = bool.Parse(dataVo.FirstItem6); FirstItem7 = bool.Parse(dataVo.FirstItem7); FirstItem8 = bool.Parse(dataVo.FirstItem8); FirstItem9 = bool.Parse(dataVo.FirstItem9); FirstItem10 = bool.Parse(dataVo.FirstItem10); FirstItem11 = bool.Parse(dataVo.FirstItem11); FirstItem12 = bool.Parse(dataVo.FirstItem12); FirstItem13 = bool.Parse(dataVo.FirstItem13); FirstItem14 = bool.Parse(dataVo.FirstItem14); FirstItem15 = bool.Parse(dataVo.FirstItem15); matList.DataAccess(dataVo); }
//-------데이터 로드-------------------------- public void DataAccess(DataVo dataVo) { Diamonds = float.Parse(dataVo.Diamonds); Point = int.Parse(dataVo.HaveMoney); EvaPoint = int.Parse(dataVo.HaveEva); }
public void DataLoad(DataVo data = null)//초기화 { if (data == null) { StartToTitle = true; data = new DataVo(); data.lookedEnd = "false"; data.isFirst = "true"; data.HaveMoney = "10000"; data.HaveEva = "0"; data.Diamonds = "2000"; data.SalingNumSave = "3"; data.SaveBlue = "0"; data.SaveRed = "0"; data.SaveGas = "0"; data.SaveDay = "0"; data.SaveInflu = "50"; data.SpawnCus = "2"; data.SaveFur1Lev = "0"; data.SaveFur2Lev = "0"; data.SaveFur3Lev = "0"; data.SaveSkillPoint = "10"; data.SaveSkill1Lev = "0"; data.SaveSkill2Lev = "0"; data.SaveSkill3Lev = "0"; data.SaveSkill1Prof = "0"; data.SaveSkill2Prof = "0"; data.SaveSkill3Prof = "0"; data.SaveSpawnTime = "40"; data.SaveTuto = "false"; data.SaveSpawnBoss = "false"; data.FirstItem1 = "false"; data.FirstItem2 = "false"; data.FirstItem3 = "false"; data.FirstItem4 = "false"; data.FirstItem5 = "false"; data.FirstItem6 = "false"; data.FirstItem7 = "false"; data.FirstItem8 = "false"; data.FirstItem9 = "false"; data.FirstItem10 = "false"; data.FirstItem11 = "false"; data.FirstItem12 = "false"; data.FirstItem13 = "false"; data.FirstItem14 = "false"; data.FirstItem15 = "false"; data.SaveNum = "0"; data.SaveItem1 = "0"; data.SaveItem2 = "0"; data.SaveItem3 = "0"; data.SaveItem4 = "0"; data.SaveItem5 = "0"; data.SaveItem6 = "0"; data.SaveItem7 = "0"; data.SaveItem8 = "0"; data.SaveItem9 = "0"; data.SaveItem10 = "0"; data.SaveItem11 = "0"; data.SaveItem12 = "0"; data.SaveItem13 = "0"; data.SaveItem14 = "0"; data.SaveItem15 = "0"; data.SavePotionNum = "0"; data.FirstPotion1 = "false"; data.FirstPotion2 = "false"; data.FirstPotion3 = "false"; data.FirstPotion4 = "false"; data.FirstPotion5 = "false"; data.FirstPotion6 = "false"; data.FirstPotion7 = "false"; data.FirstPotion8 = "false"; data.FirstPotion9 = "false"; data.FirstPotion10 = "false"; data.FirstPotion11 = "false"; data.FirstPotion12 = "false"; data.FirstPotion13 = "false"; data.FirstPotion14 = "false"; data.FirstPotion15 = "false"; data.SavePotion1 = "0"; data.SavePotion2 = "0"; data.SavePotion3 = "0"; data.SavePotion4 = "0"; data.SavePotion5 = "0"; data.SavePotion6 = "0"; data.SavePotion7 = "0"; data.SavePotion8 = "0"; data.SavePotion9 = "0"; data.SavePotion10 = "0"; data.SavePotion11 = "0"; data.SavePotion12 = "0"; data.SavePotion13 = "0"; data.SavePotion14 = "0"; data.SavePotion15 = "0"; data.SaveItems = new string[] { "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" }; //--------------------------------------- data.SavePotions = new string[] { "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0" }; Instantiate(DropMat, DropPos); Instantiate(DropMat, DropPos); Instantiate(DropMat2, DropPos); Instantiate(DropMat2, DropPos); } StringBuilder sb = new System.Text.StringBuilder(); JsonWriter writer = new JsonWriter(sb); writer.PrettyPrint = true; JsonMapper.ToJson(data, writer); JsonData saveData = sb.ToString(); if (!isExistFile) { var sr = File.CreateText(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName); sr.WriteLine(saveData.ToString()); sr.Close(); } else { File.WriteAllText(Application.persistentDataPath.Replace("/Andriod/data/kr.Hamma.pharmacy/files", "") + fileName, saveData.ToString()); } //---------데이터 연결(매니저들을 호출하고 매니저의 엑세스 메소드를 부른다.) tutorialManager.DataAccess(data); matInventoryManager.DataAccess(data); havePoInvenManager.DataAccess(data); statusManager.DataAccess(data); marchentManager.DataAccess(data); timeManager.DataAccess(data); influenceManager.DataAccess(data); customerManager.DataAccess(data); furnitureManager.DataAccess(data); skillSetManager.DataAccess(data); materialManager.DataAccess(data); }