mirror of
https://github.com/Cardidi/dotween-upm-fork.git
synced 2025-12-20 01:06:02 +08:00
[BUGFIX] Fixed DOTweenUpgradeManager not being deleted if for some reason it was kept outside of DOTween's folder
This commit is contained in:
parent
e819dec0a3
commit
4662d6671d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25e007bdbcd3d924b992ace777b1927f
|
||||
timeCreated: 1554551713
|
||||
licenseType: Pro
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3022aac9cb773eb418831741c656efec
|
||||
timeCreated: 1554551699
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -0,0 +1,34 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65bddc2573542404ca55aa12e6572a5f
|
||||
timeCreated: 1554551705
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
data:
|
||||
first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
data:
|
||||
first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
data:
|
||||
first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -32,7 +32,7 @@ namespace DG.Tweening
|
||||
public class DOTween
|
||||
{
|
||||
/// <summary>DOTween's version</summary>
|
||||
public static readonly string Version = "1.2.240"; // Last version before modules: 1.1.755
|
||||
public static readonly string Version = "1.2.245"; // Last version before modules: 1.1.755
|
||||
|
||||
///////////////////////////////////////////////
|
||||
// Options ////////////////////////////////////
|
||||
|
||||
@ -101,13 +101,17 @@ namespace DG.DOTweenEditor
|
||||
// Deletes DOTweenUpgradeManager files
|
||||
public static void DeleteDOTweenUpgradeManagerFiles()
|
||||
{
|
||||
string adbDOTweenDir = FullPathToADBPath(dotweenDir);
|
||||
Type t = Type.GetType("DG.DOTweenUpgradeManager.Autorun, DOTweenUpgradeManager");
|
||||
if (t == null) return;
|
||||
|
||||
string filePathNoExt = t.Assembly.Location;
|
||||
filePathNoExt = filePathNoExt.Substring(0, filePathNoExt.LastIndexOf('.'));
|
||||
AssetDatabase.StartAssetEditing();
|
||||
DeleteAssetsIfExist(new[] {
|
||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll",
|
||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.xml",
|
||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.pdb",
|
||||
adbDOTweenDir + "Editor/DOTweenUpgradeManager.dll.mdb"
|
||||
FullPathToADBPath(filePathNoExt + ".dll"),
|
||||
FullPathToADBPath(filePathNoExt + ".dll.mdb"),
|
||||
FullPathToADBPath(filePathNoExt + ".pdb"),
|
||||
FullPathToADBPath(filePathNoExt + ".xml")
|
||||
});
|
||||
AssetDatabase.StopAssetEditing();
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user