/// <summary> /// Load game from JSON File or Encrypted File /// </summary> public void LoadGame() { m_gameData = GJ_SerializationUtility.DeserializeObjectFromJSONFile <GJ_SaveData>(m_dataPath); }
/// <summary> /// Save the game. An NPC can just trigger the event and this will save the game data /// We saved to JSON File or Encrypted File /// </summary> public void SaveGame() { GJ_SerializationUtility.SaveObjectoToJSONFile(m_gameData, m_dataPath); }