Unity3d-Finite-State-Machine icon indicating copy to clipboard operation
Unity3d-Finite-State-Machine copied to clipboard

Update does not wait for Enter Coroutine to finish execution before starting

Open alwex opened this issue 5 years ago • 1 comments

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:

Screen Shot 2019-11-25 at 6 01 04 PM

This is a great library, and I really wish that this functionality work.

alwex avatar Nov 25 '19 04:11 alwex

Possibly the same issue as here - https://github.com/thefuntastic/Unity3d-Finite-State-Machine/issues/33

st4rdog avatar Oct 12 '20 15:10 st4rdog