public IEnumerator CurtainOn_coroutine(float minTime, string textForCurtain) { Anim.AnimStart(this); coroutine = true; CurtainOn(textForCurtain); yield return(new WaitForSeconds(minTime)); coroutine = false; CurtainOff(); Anim.AnimFinish(this); }