You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are planning to pause/resume the tree from a higher level application, right? Why not creating a State Machine in higher level so you just tick the tree on Running state, while in Pause you will wait the user to click/request Start/Continue again.
You are planning to pause/resume the tree from a higher level application, right? Why not creating a State Machine in higher level so you just tick the tree on Running state, while in Pause you will wait the user to click/request Start/Continue again.
Sorry, I still didn't understand what you meant. Can you give a simple example?Thank you very much
so, the tree has the following method called tickOnce, let's the user to tick the tree only once when they want to. So, if you create an object that has the tree as a member variable and it has a run or update method so it can run synchronously (every X ms), you can double check within that run method whether anyone requested any Pause or Resume and tick the tree the accordingly. Roughly,
What is the best way to implement pause and resume the tree in the 4.x version of the program? Can you provide an example,thx
The text was updated successfully, but these errors were encountered: