private void RaiseErrorHandler(Exception exception, Action <ErrorEventData> callback)
        {
            errorEventData = new ErrorEventData(EventSystem.current);
            errorEventData.Initialize(exception);

            callback(errorEventData);
        }
示例#2
0
        private void RaiseErrorHandler(Exception exception, Action <ErrorEventData> callback)
        {
            errorEventData = new ErrorEventData(EventSystem.current);
            errorEventData.Initialize(exception);

            if (callback == null)
            {
                log("handleErrorCallback not implemented!");
            }
            else
            {
                callback(errorEventData);
            }
        }