Exemplo n.º 1
0
 void OnError(string main, string detail, Exception e)
 {
     UnityThreadHelper.Dispatcher.Dispatch(() =>
     {
         MainLog.text   = Localizatron.Instance.Translate(main);
         DetailLog.text = Localizatron.Instance.Translate(detail);
     });
     Debugger.Log(main + " - " + detail);
     Debugger.Log(e.Message);
     m_updateCheckingThread.Abort();
 }
Exemplo n.º 2
0
        /// <summary>
        /// If the action takes longer than the wait limit, this will throw a TimeoutException
        /// </summary>
        public bool Start()
        {
            ActionThread.Start();
            TimeoutThread.Start();

            ThreadSynchronizer.WaitOne();

            if (!_success)
            {
                // throw new TimeoutException();
                ActionThread.Abort();
            }
            ThreadSynchronizer.Close();
            return(_success);
        }