title: How to change UI or GameObject with Thread in Unity
body: <p>I want to develop a net game by Unity. I use thread to run loop for sockets' communication. There will be some reactions when the client's socket receive some orders.But UI can only be changed in main thread. </p>
  
  <p>So I have to make some flag variables to be turned on/off in those callback function, and checked in Update function to make some change. </p>
  
  <p>Is there any easy way to solve this problem?</p>