static SaveSystem() { // Load settings. settings = Resources.Load <SaveSystemSettings>(saveSystemSettingsFilePath); // Find directory. directory = new DirectoryInfo(GetPathBasedOnSettings()); // If it does not exist, create it. CreateDirectory(); // Look for save files. SearchForSaveFiles(); // Load the most recent into the active slot. LoadedData = LoadGameFile(); }
/// <summary> /// Changes the save system settings. /// </summary> /// <param name="updatedSettings"> New settings to be used by the system. </param> public static void SetSaveSystemSettings(SaveSystemSettings updatedSettings) { settings = updatedSettings; }