Unity3d-Finite-State-Machine
Unity3d-Finite-State-Machine copied to clipboard
Update does not wait for Enter Coroutine to finish execution before starting
I am experiencing a strange issue, it seems that the state machine does not wait for the Enter
Coroutine to finish its execution before executing the Update
function
IEnumerator NextRound_Enter()
{
Debug.Log("NextRound Enter 1");
yield return new WaitForSeconds(2f);
Debug.Log("NextRound Enter 2");
}
void NextRound_Update()
{
Debug.Log("NextRound Updating");
}
see the logs attached:

This is a great library, and I really wish that this functionality work.
Possibly the same issue as here - https://github.com/thefuntastic/Unity3d-Finite-State-Machine/issues/33