I want to cache the ui gameobject . But I think If I put the gameobject into the pool and use the gameobject next frame.
So the last frame message can be recevied at current frame.
Has some easy way to process the probleam?
code:
gameobject.SendMessage("AAAA"); //frame 0
gameobject.active = false // frame 0
_pool.Push(gameobject);// frame 0
_pool.Pop(); // frame 1
gameobject.active = true;// frame 1
so the gameobject will receive the message "AAAA". It will make some trouble!