Esempio n. 1
0
        public void restoreSaveGameData(FPEJournalSaveData data)
        {
            hasBeenRead = data.HasBeenRead;

            if (hasBeenRead && postReadInteractionString != "")
            {
                interactionString = postReadInteractionString;
            }
        }
        /// <summary>
        /// Gathers save data from all Journals
        /// </summary>
        /// <returns>An array of save data for Journals</returns>
        public FPEJournalSaveData[] gatherJournalSaveData()
        {
            FPEInteractableJournalScript[] allJournals = GameObject.FindObjectsOfType <FPEInteractableJournalScript>();
            FPEJournalSaveData[]           saveData    = new FPEJournalSaveData[allJournals.Length];

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

            return(saveData);
        }