Esempio n. 1
0
    /// <summary>
    /// Load the target json file
    /// </summary>
    public void load(string f)
    {
        if (f != "")
        {
            targetFileName = f;
        }
        var clipCollection = JsonMoveClipCollection.loadJson(baseFolder + targetFileName);

        clipCollection.applyToClips(clipPool);
        updateAll();
    }
Esempio n. 2
0
    /// <summary>
    /// Save to a file
    /// </summary>
    public void save(string f)
    {
        if (f != "")
        {
            targetFileName = f;
        }
        var path = baseFolder + targetFileName;

        Debug.Log("File saved to:" + path);

        var clipCollection = new JsonMoveClipCollection(clipPool);
        var json           = clipCollection.toJson();

        //Debug.Log("Json file generated<\n" + json + ">");
        System.IO.File.WriteAllText(path, json);
    }