Esempio n. 1
0
 /// <summary>
 /// Load game from JSON File or Encrypted File
 /// </summary>
 public void LoadGame()
 {
     m_gameData = GJ_SerializationUtility.DeserializeObjectFromJSONFile <GJ_SaveData>(m_dataPath);
 }
Esempio n. 2
0
 /// <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);
 }