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

            callback(errorEventData);
        }
Ejemplo n.º 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);
            }
        }