Exemple #1
0
 void Update() {
     if (callback == null)
         return;
     if (thread != null && !thread.IsDone) {
         thread.Update();
     }
     if (thread.IsDone) {
         thread.OnFinished();
         Debug.Log("UDP-Update: Thread is done. Starting another");
         thread = new UDPThread(callback);
         thread.Start();
     }
 }
Exemple #2
0
 void Update()
 {
     if (callback == null)
     {
         return;
     }
     if (thread != null && !thread.IsDone)
     {
         thread.Update();
     }
     if (thread.IsDone)
     {
         thread.OnFinished();
         Debug.Log("UDP-Update: Thread is done. Starting another");
         thread = new UDPThread(callback);
         thread.Start();
     }
 }
Exemple #3
0
 void Start() {
     thread = new UDPThread(callback);
     thread.Start();
     Debug.Log("UDP-Start: Created thread");
 }
Exemple #4
0
 void Start()
 {
     thread = new UDPThread(callback);
     thread.Start();
     Debug.Log("UDP-Start: Created thread");
 }