// Function called to update the detail info variables public void DetailData(Pastime detail) { Day = detail.Day; Month = detail.Month; Year = detail.Year; gp = detail.gp; }
// Awake Function that sets the data scripts and calls the UpdateUI function to populate the list of current saves public void Awake() { village = WorldData.GetComponent <VillageBuilder>(); details = WorldData.GetComponent <Pastime>(); UpdateUI(Directory.GetFiles(Application.persistentDataPath, "*.poop").Length, SaveList, "save"); UpdateUI(Directory.GetFiles(Application.persistentDataPath, "*.poop").Length, LoadList, "load"); }