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(); }