瀏覽代碼

[unity] Fix unneeded Unity 5 compiler condition.

Also fixes compatibility with Unity 2017
John 8 年之前
父節點
當前提交
2cd9467d27
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs

+ 2 - 4
spine-unity/Assets/spine-unity/Mesh Generation/SpineMesh.cs

@@ -32,11 +32,9 @@ using UnityEngine;
 
 
 namespace Spine.Unity {
 namespace Spine.Unity {
 	public static class SpineMesh {
 	public static class SpineMesh {
-#if UNITY_5
+
 		internal const HideFlags MeshHideflags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor;
 		internal const HideFlags MeshHideflags = HideFlags.DontSaveInBuild | HideFlags.DontSaveInEditor;
-#else
-		internal const HideFlags MeshHideflags = HideFlags.DontSave; 
-#endif
+
 		/// <summary>Factory method for creating a new mesh for use in Spine components. This can be called in field initializers.</summary>
 		/// <summary>Factory method for creating a new mesh for use in Spine components. This can be called in field initializers.</summary>
 		public static Mesh NewMesh () {
 		public static Mesh NewMesh () {
 			var m = new Mesh();
 			var m = new Mesh();