コード例 #1
0
        public TestZone(Action <Exception> exceptionHandler)
        {
            _exceptionHandler = exceptionHandler;
            var mainThreadId = Thread.CurrentThread.ManagedThreadId;

            _dispatcher = new TimerDispatcher(mainThreadId, exceptionHandler);

            Zone.Current = this;
        }
コード例 #2
0
ファイル: UnityZone.cs プロジェクト: Mefodei/UniMob
        private void Awake()
        {
            if (_dispatcher != null)
            {
                Destroy(gameObject);
                return;
            }

            var unityThreadId = Thread.CurrentThread.ManagedThreadId;

            _dispatcher = new TimerDispatcher(unityThreadId, HandleUncaughtException);

            Zone.Current = this;
        }