I have a timer.performWithDelay that is running the main game thread of my app inorder to update ai elements. Lets call this timerFunction.
I also have a touch listener running to handle player input that responds to event.phase == “ended”. Lets call this touchFunction
Is it possible that in the middle of the timerFunction being executed the touchFunction runs, effectively splitting the execution of the timerFunction?
Is it possible that in the middle of the touchFunction being executed the timerFunction runs, effectively splitting the execution of the touchFunction?
In my game I am having a bug that occurs rarely and it has eluded me for months. Could this be the cause?
Thanks!