A game about forced loneliness, made by TACStudios
1using System; 2using System.Reflection; 3 4namespace Unity.VisualScripting 5{ 6 public static class ExceptionUtility 7 { 8 public static Exception Relevant(this Exception ex) 9 { 10 if (ex is TargetInvocationException) 11 { 12 return ex.InnerException; 13 } 14 else 15 { 16 return ex; 17 } 18 } 19 } 20}