// WaitUntil example: void Start() { StartCoroutine(WaitALittle()); } IEnumerator WaitALittle() { yield return new WaitUntil(() => health == 0); DoStuff(); }