private void RaiseErrorHandler(Exception exception, Action <ErrorEventData> callback) { errorEventData = new ErrorEventData(EventSystem.current); errorEventData.Initialize(exception); callback(errorEventData); }
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); } }