res-avatar-unity/Assets/RalivDynamicPenetrationSystem/Includes/OldVersionCheck.cs

15 lines
604 B
C#
Raw Permalink Normal View History

2023-07-16 02:51:23 +00:00
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public static class OldVersionCheck {
[UnityEditor.Callbacks.DidReloadScripts]
public static void OnScriptsReloaded() {
if (System.IO.Directory.Exists(AssetDatabase.GUIDToAssetPath("66b81bbcb27723e4ea85b86918446223"))) {
EditorUtility.DisplayDialog("OLD VERSION DETECTED", "OLD INSTALL DETECTED! You must delete both DynamicPenetrationSystem and RalivDynamicPenetrationSystem folders and reimport the package!", "OK");
}
}
}
#endif