public void TransitionOut() { mEndGameUI.FadeToBlack(); Timer tempTimer = mTopBarControls.gameObject.GetComponentInChildren <Timer>(); Debug.Assert(tempTimer != null); GameManager tempManager = mRunOneMower.GetComponent <GameManager>(); Debug.Assert(tempManager != null); LogTimeAndScore(tempTimer, tempManager); ResetUI(tempTimer, tempManager); }