Пример #1
0
    public void Done()
    {
        PersistentManager pm = GameObject.Find("PersistentManager").GetComponent <PersistentManager>();

        pm.UpdateLanguage(language);
        MyClass myObject = new MyClass();

        myObject.Country = fields[0].text;
        myObject.Event   = fields[1].text;
        myObject.Country = fields[2].text;
        string json = JsonUtility.ToJson(myObject) + "\r\n";

        Directory.CreateDirectory(pm.location());
        File.AppendAllText(pm.location() + fields[1].text + ".json", json);
        SceneManager.LoadScene("Start");
    }