Unity Waituntil Coroutine
// WaitUntil example:
void Start()
{
StartCoroutine(WaitALittle());
}
IEnumerator WaitALittle()
{
yield return new WaitUntil(() => health == 0);
DoStuff();
}
CharliePagel says: You're cool!