Exemple #1
0
    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();
    }
Exemple #2
0
    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);
        }
    }