Exemplo n.º 1
0
 // 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;
 }
Exemplo n.º 2
0
    // 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");
    }