IEnumerator WaitTime(int pos) { endWaitPoint = false; yield return(new WaitForSeconds(line.getWaitTime(pos))); endWaitPoint = true; }