public static void RefreshExistingASMDEFFiles() { ASMDEFManager.Refresh(); if (!ASMDEFManager.hasModulesASMDEF) { if (!ASMDEFManager.hasProASMDEF) { return; } ASMDEFManager.RemoveASMDEF(ASMDEFManager.ASMDEFType.DOTweenPro); } else if (EditorUtils.hasPro && !ASMDEFManager.hasProASMDEF) { ASMDEFManager.CreateASMDEF(ASMDEFManager.ASMDEFType.DOTweenPro, false); } else if (EditorUtils.hasPro) { DOTweenSettings doTweenSettings = DOTweenUtilityWindow.GetDOTweenSettings(); if ((Object)doTweenSettings == (Object)null) { return; } bool flag = false; using (StreamReader streamReader = new StreamReader(EditorUtils.dotweenProDir + "DOTweenPro.Scripts.asmdef")) { string str; while ((str = streamReader.ReadLine()) != null) { if (str.Contains("Unity.TextMeshPro")) { flag = true; break; } } } if (flag == doTweenSettings.modules.textMeshProEnabled) { return; } ASMDEFManager.CreateASMDEF(ASMDEFManager.ASMDEFType.DOTweenPro, true); } }
public static void RemoveAllASMDEF() { ASMDEFManager.RemoveASMDEF(ASMDEFManager.ASMDEFType.Modules); ASMDEFManager.RemoveASMDEF(ASMDEFManager.ASMDEFType.DOTweenPro); }