Exemplo n.º 1
0
	void DoThreadWork(UnityThreading.ActionThread myThread)
	{
		// processing
		for (int i = 0; i < 10000; i++) {
			// processing
			//Debug.LogError("Testing thread: " + i);
			//Debug.LogError("Testing thread: " + Time.time);
			//return new WaitForSeconds(2);
			//yield return new WaitForSeconds(2);
		}
	}
Exemplo n.º 2
0
    public void RegisterThread(UnityThreading.ThreadBase thread)
    {
        if (registeredThreads.Contains(thread))
        {
            return;
        }

        registeredThreads.Add(thread);
    }
Exemplo n.º 3
0
 void RegisterThread(UnityThreading.ThreadBase thread)
 {
     registeredThreads.Add(thread);
 }