public void SaveProgress(bool triggerEvent) { SaveGame.Save(_ACTUAL_REMINDERS_FILE_PATH, _reminders); if (triggerEvent) { OnRemindersUpdate?.Invoke(GetAllReminders(AppManager.Instance.currentAppMode)); } }
public void RemoveAllReminders() { Debug.Log("All reminders removed and data cleaned"); for (int i = 0; i < _reminders.Count; i++) { _reminders[i].Reset(); } _reminders.Clear(); SaveGame.Delete(_ACTUAL_REMINDERS_FILE_PATH); PlayerPrefs.DeleteKey(_DEFAULT_REMINDERS_ADDED_KEY); OnRemindersUpdate?.Invoke(GetAllReminders(AppManager.Instance.currentAppMode)); }