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();
     }
 }
Example #2
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();
     }
 }
Example #3
0
 void Start()
 {
     thread = new TCPThread(callback);
     thread.Start();
 }
Example #4
0
 void Start() {
     thread = new TCPThread(callback);
     thread.Start();
     
 }