private IEnumerator LoadExpensePage() { transitionManager.FadeScreenOut(); while (transitionManager.isTransitioning) { yield return(null); } inCostTutorial = true; currPage = 0; //load cost canvases CostCanvas.gameObject.SetActive(true); TutorialCanvas.gameObject.SetActive(true); //load first page in cost tutorial CostTutorialPages[0].gameObject.SetActive(true); transitionManager.FadeScreenIn(); //set data on expense report page onCostPage = true; TotalField.text = playerInfo.currMoney.ToString(); foodCostField.text = playerInfo.foodCostPerDay.ToString(); houseCostField.text = playerInfo.houseCostPerDay.ToString(); TaxCostField.text = playerInfo.taxCostPerDay.ToString(); while (transitionManager.isTransitioning) { yield return(null); } }