Exemple #1
0
    void Save()
    {
        string             savePath       = Application.dataPath + "/Resources/" + ((CardDataMaker)target).fileName + ".xml";
        CardDataCollection dataCollection = new CardDataCollection();

        dataCollection.data = ((CardDataMaker)target).cardData;

        dataCollection.Save(savePath);
        Debug.Log("Card Data saved to: " + savePath);
    }
    public void ExportData(string path)
    {
        string             savePath       = System.Environment.ExpandEnvironmentVariables("%USERPROFILE%\\Documents\\" + fileName + ".xml");
        CardDataCollection dataCollection = new CardDataCollection();

        dataCollection.data = cardData;

        dataCollection.Save(path);
        Debug.Log("Card Data saved to: " + path);
    }