Coroutina de espera da unidade
// WaitUntil example:
void Start()
{
StartCoroutine(WaitALittle());
}
IEnumerator WaitALittle()
{
yield return new WaitUntil(() => health == 0);
DoStuff();
}
CharliePagel says: You're cool!