public static bool IsUnityVSEnabled() { if (!UnityVSSupport.s_IsUnityVSEnabled.HasValue) { bool arg_49_0; if (UnityVSSupport.m_ShouldUnityVSBeActive) { arg_49_0 = AppDomain.CurrentDomain.GetAssemblies().Any((Assembly a) => UnityVSSupport.GetAssemblyLocation(a) == UnityVSSupport.s_UnityVSBridgeToLoad); } else { arg_49_0 = false; } UnityVSSupport.s_IsUnityVSEnabled = new bool?(arg_49_0); } return(UnityVSSupport.s_IsUnityVSEnabled.Value); }
private static string CalculateAboutWindowLabel() { string result; if (!UnityVSSupport.IsUnityVSEnabled()) { result = ""; } else { Assembly assembly = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault((Assembly a) => UnityVSSupport.GetAssemblyLocation(a) == UnityVSSupport.s_UnityVSBridgeToLoad); if (assembly == null) { result = ""; } else { StringBuilder stringBuilder = new StringBuilder("Microsoft Visual Studio Tools for Unity "); stringBuilder.Append(assembly.GetName().Version); stringBuilder.Append(" enabled"); result = stringBuilder.ToString(); } } return(result); }