/// <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);
        }
Exemplo n.º 2
0
 public void restoreSaveGameData(FPEAttachedNoteSaveData data)
 {
     collected = data.Collected;
 }