From 02cbf807ebf40531889ff2e989f4280059522e2c Mon Sep 17 00:00:00 2001 From: pharan Date: Wed, 5 Dec 2018 20:12:10 +0800 Subject: [PATCH] [unity] SpineEditorUtilities better defines. --- .../spine-unity/Editor/SpineEditorUtilities.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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(); }