/// <summary>
        /// Gathers save data for Attached Note type objects
        /// </summary>
        /// <returns>Array of saveable Attached Note data</returns>
        public FPEAttachedNoteSaveData[] gatherAttachedNoteTypeData()
        {
            FPEAttachedNote[]         attachedNoteObjs = GameObject.FindObjectsOfType <FPEAttachedNote>();
            FPEAttachedNoteSaveData[] saveData         = new FPEAttachedNoteSaveData[attachedNoteObjs.Length];

            for (int n = 0; n < attachedNoteObjs.Length; n++)
            {
                saveData[n] = attachedNoteObjs[n].getSaveGameData();
            }

            return(saveData);
        }
Exemple #2
0
 public void restoreSaveGameData(FPEAttachedNoteSaveData data)
 {
     collected = data.Collected;
 }