private IEnumerator DelayedClose(float delayTime) { yield return new WaitForSeconds(delayTime); Close(); } }