IEnumerator presenter1() { yield return(new WaitForSeconds(2)); Instantiate(dialog); dialog.GetComponent <DialogConfig>().Show(dialogFinished); }