Ejemplo n.º 1
0
    /* Variables */

    /* Setter/Getter */

    /* Functions */
    private void Awake()
    {
        string path = Application.dataPath + "/JCS_GameData/SavedData/FT_GameData.jcs";

        FT_JSONGameData data = new FT_JSONGameData();

        data.Save <FT_JSONGameData>(path);

        data.Cash = 10;

        print(data.Cash);
        data = FT_JSONGameData.LoadFromFile <FT_JSONGameData>(path);
        print(data.Cash);
    }
Ejemplo n.º 2
0
    /* Variables */

    /* Setter/Getter */

    /* Functions */
    private void Awake()
    {
        string path = JCS_Utility.PathCombine(Application.dataPath, "/JCS_GameData/SavedData/FT_GameData.jcs");

        FT_JSONGameData data = new FT_JSONGameData();

        data.Save <FT_JSONGameData>(path);

        data.Cash = 10;

        print(data.Cash);
        data = FT_JSONGameData.LoadFromFile <FT_JSONGameData>(path);
        print(data.Cash);
    }