diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs index e7f6b6cc9..f0b699cd1 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/SpineEditorUtilities.cs @@ -1482,28 +1482,28 @@ namespace Spine.Unity.Editor { static Dictionary skeletonUtilityBoneTable = new Dictionary(); static Dictionary boundingBoxFollowerTable = new Dictionary(); - #if UNITY_2017_2_OR_NEWER +#if NEWPLAYMODECALLBACKS internal static void IconsOnPlaymodeStateChanged (PlayModeStateChange stateChange) { - #else +#else internal static void IconsOnPlaymodeStateChanged () { - #endif +#endif skeletonRendererTable.Clear(); skeletonUtilityBoneTable.Clear(); boundingBoxFollowerTable.Clear(); - #if UNITY_2018 +#if NEWHIERARCHYWINDOWCALLBACKS EditorApplication.hierarchyChanged -= IconsOnChanged; - #else +#else EditorApplication.hierarchyWindowChanged -= IconsOnChanged; - #endif +#endif EditorApplication.hierarchyWindowItemOnGUI -= IconsOnGUI; if (!Application.isPlaying && Preferences.showHierarchyIcons) { - #if UNITY_2018 +#if NEWHIERARCHYWINDOWCALLBACKS EditorApplication.hierarchyChanged += IconsOnChanged; - #else +#else EditorApplication.hierarchyWindowChanged += IconsOnChanged; - #endif +#endif EditorApplication.hierarchyWindowItemOnGUI += IconsOnGUI; IconsOnChanged(); }