StartCoroutine(Patrol()); public IEnumerator Patrol() { while(true) { dt.Walk(); yield return new WaitForSeconds(reactionTime); } }