Example #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);
		}
	}
    public void RegisterThread(UnityThreading.ThreadBase thread)
    {
        if (registeredThreads.Contains(thread))
        {
            return;
        }

        registeredThreads.Add(thread);
    }
 void RegisterThread(UnityThreading.ThreadBase thread)
 {
     registeredThreads.Add(thread);
 }