// Save and Load the Stats public void SaveMuseumStats() { data.currencyData = instance.GetWealth(); data.ratingData = instance.GetRatingRaw(); data.staminaData = instance.GetStamina(); data.dayData = instance.GetDay(); SaveLoad.Save(data, "museumStats"); }
void Update() { wealthText.GetComponent <TextMeshProUGUI>().SetText("Currency: " + museStats.GetWealth()); ratingText.GetComponent <TextMeshProUGUI>().SetText("Rating: " + museStats.GetRoundedRating()); dayText.GetComponent <TextMeshProUGUI>().SetText("Day: " + museStats.GetDay()); }