Is there any downside to adding the UpdateTurnText() as a listener to the endTurnBtn? I refactored my code to follow the course, but the below solution seemed cleaner to me than creating a new event between the two scripts.
private void Start() {
endTurnButton.onClick.AddListener(() => {
TurnSystem.Instance.NextTurn();
UpdateTurnText();
});
}
private void UpdateTurnText() {
int turnNumber = TurnSystem.Instance.GetTurnNumber();
turnNumberText.text = $"TURN {turnNumber}";
}