コード例 #1
0
        public static void DeleteLegacyNoModulesDOTweenFiles()
        {
            string adbPath = EditorUtils.FullPathToADBPath(EditorUtils.dotweenDir);

            AssetDatabase.StartAssetEditing();
            EditorUtils.DeleteAssetsIfExist(new string[21]
            {
                adbPath + "DOTween43.dll",
                adbPath + "DOTween43.xml",
                adbPath + "DOTween43.dll.mdb",
                adbPath + "DOTween43.dll.addon",
                adbPath + "DOTween43.xml.addon",
                adbPath + "DOTween43.dll.mdb.addon",
                adbPath + "DOTween46.dll",
                adbPath + "DOTween46.xml",
                adbPath + "DOTween46.dll.mdb",
                adbPath + "DOTween46.dll.addon",
                adbPath + "DOTween46.xml.addon",
                adbPath + "DOTween46.dll.mdb.addon",
                adbPath + "DOTween50.dll",
                adbPath + "DOTween50.xml",
                adbPath + "DOTween50.dll.mdb",
                adbPath + "DOTween50.dll.addon",
                adbPath + "DOTween50.xml.addon",
                adbPath + "DOTween50.dll.mdb.addon",
                adbPath + "DOTweenTextMeshPro.cs.addon",
                adbPath + "DOTweenTextMeshPro_mod.cs",
                adbPath + "DOTweenTk2d.cs.addon"
            });
            AssetDatabase.StopAssetEditing();
        }
コード例 #2
0
        public static void DeleteOldDemiLibCore()
        {
            string assemblyFilePath = EditorUtils.GetAssemblyFilePath(typeof(DOTween).Assembly);
            string str1             = assemblyFilePath.IndexOf("/") != -1 ? "/" : "\\";
            string str2             = assemblyFilePath.Substring(0, assemblyFilePath.LastIndexOf(str1));
            string fullPath         = str2.Substring(0, str2.LastIndexOf(str1)) + str1 + "DemiLib";
            string adbPath          = EditorUtils.FullPathToADBPath(fullPath);

            if (!EditorUtils.AssetExists(adbPath))
            {
                return;
            }
            string str3 = adbPath + "/Core";

            if (!EditorUtils.AssetExists(str3))
            {
                return;
            }
            EditorUtils.DeleteAssetsIfExist(new string[7]
            {
                adbPath + "/DemiLib.dll",
                adbPath + "/DemiLib.xml",
                adbPath + "/DemiLib.dll.mdb",
                adbPath + "/Editor/DemiEditor.dll",
                adbPath + "/Editor/DemiEditor.xml",
                adbPath + "/Editor/DemiEditor.dll.mdb",
                adbPath + "/Editor/Imgs"
            });
            if (!EditorUtils.AssetExists(adbPath + "/Editor") || Directory.GetFiles(fullPath + str1 + "Editor").Length != 0)
            {
                return;
            }
            AssetDatabase.DeleteAsset(adbPath + "/Editor");
            AssetDatabase.ImportAsset(str3, ImportAssetOptions.ImportRecursive);
        }
コード例 #3
0
        public static void DeleteDOTweenUpgradeManagerFiles()
        {
            string adbPath = EditorUtils.FullPathToADBPath(EditorUtils.dotweenDir);

            AssetDatabase.StartAssetEditing();
            EditorUtils.DeleteAssetsIfExist(new string[4]
            {
                adbPath + "Editor/DOTweenUpgradeManager.dll",
                adbPath + "Editor/DOTweenUpgradeManager.xml",
                adbPath + "Editor/DOTweenUpgradeManager.pdb",
                adbPath + "Editor/DOTweenUpgradeManager.dll.mdb"
            });
            AssetDatabase.StopAssetEditing();
        }