in unity3d where can i put the Service()?

MonoBehaviour . update()

2.using a new thread like this :
ThreadPool.QueueUserWorkItem(new WaitCallback(Update),1); public void Update( object st) { while( PlatexitUpdate == false ) { this.peer.Service(); } }

which one is better? and another way ?


  • I think putting peer.Service() to the Update() function is the preferred way if you want real-time behaviour.