Esempio n. 1
0
        /// <summary>
        /// Initialize Data. We set the data path + file and creates dummy data for save file
        /// </summary>
        public void InitializeData()
        {
            m_dataPath = Application.dataPath + GJ_SaveSetup.DATA_PATH;
            Directory.CreateDirectory(m_dataPath);
            m_dataPath += GJ_SaveSetup.DATA_FILE;

            m_gameData = new GJ_SaveData();
        }
Esempio n. 2
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. 3
0
 public void CreateGameData()
 {
     m_gameData = new GJ_SaveData();
 }