- Home /
Execution order of ui button click function and update
I am attaching three scripts : 1.)Constains a bool which is used as a alternate to time.timesacle 2.)Pausebutton controller-Used for pausing a game when pause button is clicked 3.)GameObjectGetter-gets Gameobjects from object pool.
My doubt is when I pressed the pause button in game the script 2 is executing and setting the bool in script 1 to "false" when this happens the update function in script3 should stop invokecalls but the invoke calls is still repeating.
And is Onclick() eventfunction executes completely before the execution of next Update()?
**AND I WANT TO KNOW WHY THIS IS HAPPENEING NOT AN ALTERNATE SOLUTION**link text
[PAUSEBUTTONCONTROLLER[1]
[1]: https://pastebin.com/XC2dqD4A
gameobjectgetter.txt
(2.2 kB)
Comment
Your answer
