Example #1
0
 void Update()
 {
     if (callback == null)
     {
         return;
     }
     if (thread != null && !thread.IsDone)
     {
         thread.Update();
     }
     if (thread.IsDone)
     {
         thread.OnFinished();
         Debug.Log("TCP-Update: Thread is done. Starting another");
         thread = new TCPThread(callback);
         thread.Start();
     }
 }