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); } }
void Update() { wealthText.GetComponent <TextMeshProUGUI>().SetText("Currency: " + museStats.GetWealth()); ratingText.GetComponent <TextMeshProUGUI>().SetText("Rating: " + museStats.GetRoundedRating()); dayText.GetComponent <TextMeshProUGUI>().SetText("Day: " + museStats.GetDay()); }