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