private void LoadTime() { if (File.Exists(GetPath(FilenameTime, ExtensionTime))) { _saveInfo = LoadFile <SaveInfo>(FilenameTime, ExtensionTime); } else { _saveInfo = new SaveInfo ( DateTime.Now, 1, 2018, 5000, new List <int>(), new Dictionary <NodeState.FieldTypeEnum, float>(), 0, false, new Dictionary <int, bool>(), new Dictionary <int, bool>(), TimeManager.Instance.GetWaitForSeconds() ); } }
private void SaveMiscFiles() { int tempTrack = 0; for (int i = 0; i < SimpleMoneyManager.Instance.GetMoneyValueDict().Count; i++) { for (int j = 0; j < SimpleMoneyManager.Instance.GetMoneyValueDict().ElementAt(i).Value.Count; j++) { tempTrack++; } } _saveInfo = new SaveInfo ( DateTime.Now, TimeManager.Instance.GetMonth(), TimeManager.Instance.GetYear(), SimpleMoneyManager.Instance.GetCurrentMoney(), _saveInfo.DictionaryIndexEntrys, SimpleMoneyManager.Instance.GetPercentageValues(), tempTrack, _saveInfo.TutorialHasPlayed, Reviews.GetReadDict(), Messages.GetReadDict(), TimeManager.Instance.GetWaitForSeconds() ); SaveFiles(_saveInfo, FilenameTime, ExtensionTime); }