Пример #1
0
        /// <summary>
        /// Initializes this module.
        /// </summary>
        public static void Initialize()
        {
            if (I != null)
            {
                return;
            }

            I            = RenkoLibrary.CreateModule <UnityThread>();
            MainThreadId = Thread.CurrentThread.ManagedThreadId;
        }
Пример #2
0
 /// <summary>
 /// Executes the specified handler in main thread.
 /// </summary>
 public static object RunOnMainThread(UnityThread.ProcessHandler handler)
 {
     return(UnityThread.Dispatch(handler));
 }