/* 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); }
/* 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); }