private void Awake() { // Store the data into a dictionary for performant retrieval of identifiers. for (int i = 0; i < saveableComponents.Count; i++) { saveableComponentDictionary.Add(saveableComponents[i].identifier.Value, saveableComponents[i].monoBehaviour as ISaveable); } onGameSaved?.AddListener(OnSaveRequest); onGameLoaded?.AddListener(OnLoadRequest); }
public override void OnEnable() { base.OnEnable(); SaveEvent.AddListener(ObjectiveValueManager.SaveObjectiveValuesEventHandler); }
public override void OnEnable() { base.OnEnable(); SaveEvent.AddListener(ROSParameterManager.SaveROSParametersEventHandler); }