public void reWriteData() { ChatGUI.addLine("Searching Data Trying To Create Json"); Stick(Application.persistentDataPath + InGameData.Sprite_path + "Sprites", 0); WriteJson <Data_sprites> .SaveJson(DataSprites, DataBase.SpriteDataPath); ChatGUI.addLine("Json Was Created! - GameReloaded"); reLoadData(); }
void Update() { if(Input.GetKeyDown(KeyCode.S)) { WriteJson obj = this.GetComponent<WriteJson>(); obj.SaveJson(); } if (Input.GetKeyDown(KeyCode.L)) { GameStatus status = LoadJson.LoadJsonFromFile(); Debug.Log(status); } }