123456789101112131415161718192021222324 |
- using UnityEngine;
- using System;
- namespace GraphProcessor
- {
- public static class ExceptionToLog
- {
- public static void Call(Action a)
- {
- #if UNITY_EDITOR
- try
- {
- #endif
- a?.Invoke();
- #if UNITY_EDITOR
- }
- catch (Exception e)
- {
- Debug.LogException(e);
- }
- #endif
- }
- }
- }
|