/// <summary> /// Tries to load the currency if a file is present /// </summary> public virtual void LoadSavedCurrency() { SerializedCurrency serializedCurrency = (SerializedCurrency)MMSaveLoadManager.Load(typeof(SerializedCurrency), _saveFileNameCurrency + _saveFileExtensionCurrency, _saveFolderName); ExtractSerializedCurrency(serializedCurrency); CorgiEngineEvent.Trigger(CorgiEngineEventTypes.LoadPoints); }
/// <summary> /// Tries to load the inventory if a file is present /// </summary> public virtual void LoadSavedInventory() { SerializedInventory serializedInventory = (SerializedInventory)MMSaveLoadManager.Load(typeof(SerializedInventory), gameObject.name + _saveFileExtension, _saveFolderName); ExtractSerializedInventory(serializedInventory); MMInventoryEvent.Trigger(MMInventoryEventType.InventoryLoaded, null, this.name, null, 0, 0); }
/// <summary> /// Loads the sound settings from file (if found) /// </summary> protected virtual void LoadSoundSettings() { SoundSettings settings = (SoundSettings)MMSaveLoadManager.Load(typeof(SoundSettings), _saveFileName, _saveFolderName); if (settings != null) { Settings = settings; } }
/// <summary> /// Loads the settings from file (if found) /// </summary> protected virtual void LoadGameSettings() { SaveSettings settings = (SaveSettings)MMSaveLoadManager.Load(typeof(GameObject), _saveFileName, _saveFolderName); if (settings != null) { SaveSettings = settings; } }
public void LoadDataCollection() { SerializedDataManager serializedDataManager = (SerializedDataManager)MMSaveLoadManager.Load(typeof(SerializedDataManager), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName); ExtractSerializedData(serializedDataManager); }
/// <summary> /// Tries to load the currency if a file is present /// </summary> public virtual void LoadSavedIntroScene() { SerializedIntro serializedIntro = (SerializedIntro)MMSaveLoadManager.Load(typeof(SerializedIntro), _saveFileNameCurrency + _saveFileExtensionCurrency, _saveFolderName); ExtractSerializedIntroScene(serializedIntro); }
public void LoadGeomancers() { SerializedGeomancerManager serializedGeo = (SerializedGeomancerManager)MMSaveLoadManager.Load(typeof(SerializedGeomancerManager), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName); ExtractSerializedGeomancers(serializedGeo); }
/// <summary> /// Tries to load the currency if a file is present /// </summary> public virtual void LoadSavedTime() { SerializedTime serializedTime = (SerializedTime)MMSaveLoadManager.Load(typeof(SerializedTime), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName); ExtractSerializedTime(serializedTime); }