예제 #1
0
        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);
        }
예제 #2
0
 public override void OnEnable()
 {
     base.OnEnable();
     SaveEvent.AddListener(ObjectiveValueManager.SaveObjectiveValuesEventHandler);
 }
예제 #3
0
 public override void OnEnable()
 {
     base.OnEnable();
     SaveEvent.AddListener(ROSParameterManager.SaveROSParametersEventHandler);
 }