예제 #1
0
파일: SceneLoad.cs 프로젝트: aptmcl/Khepri
 static void OnRuntimeMethodLoad()
 {
     new Thread(() => {
         while (true)
         {
             Thread.Sleep(2000);
             Debug.Log("Meow");
             //UnityMainThreadDispatcher.Instance().Enqueue(new Action(test));
             UnityMainThreadDispatcher.Instance().Enqueue(test);
             Thread.Sleep(2000);
             UnityMainThreadDispatcher.Instance().Enqueue(delegate { Primitives.DeleteAll(); });
         }
     }).Start();
 }