Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        string startingDay = PlayerPrefs.GetString("StartingDay");
        int    currentDay  = saveDataController.DaysBetween(Convert.ToDateTime(startingDay), DateTime.Now) + 1;
        string casualties  = PlayerPrefs.GetString("Casualties");

        string saveData = "Save Data\n" +
                          "StartingDay: " + startingDay + "\n" +
                          "Current Day (f) " + currentDay + "\n" +
                          "Casualties: " + casualties;

        SaveDataText.text = saveData;
    }