void Update() { wealthText.GetComponent <TextMeshProUGUI>().SetText(museStats.GetWealth().ToString()); ratingText.GetComponent <TextMeshProUGUI>().SetText(museStats.GetRoundedRating().ToString()); exhibitsOnDisplayText.GetComponent <TextMeshProUGUI>().SetText(GetExhibitsOnDisplay().ToString()); if (inRange && Input.GetKeyDown(KeyCode.F)) { DisplayOfficeUI(officeUI); } }
// 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()); }