in unity3d where can i put the Service()?

Options
1.
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 ?

Answers

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