IEnumerator _TransitionOut()
{
// Resume the game
Time.timeScale = 1;
objText.SetActive(false);
objButtons.SetActive(false);
// Fade out over 10 frames
imgFade.color = new Color(0, 0, 0, 0.4f);
for (int i = 0; i < 10; i++)
{
imgFade.color -= new Color(0, 0, 0, 0.04f);
yield return null;
}
imgFade.color = Color.clear;
// Allow input again
busy = false;
}