Browse Source

[unity] Minor cleanup.

Harald Csaszar 3 năm trước cách đây
mục cha
commit
cf654d3768

+ 1 - 1
spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/SkeletonAnimationInspector.cs

@@ -74,11 +74,11 @@ namespace Spine.Unity.Editor {
 			EditorGUILayout.PropertyField(loop, LoopLabel);
 			EditorGUILayout.PropertyField(loop, LoopLabel);
 			wasAnimationParameterChanged |= EditorGUI.EndChangeCheck(); // Value used in the next update.
 			wasAnimationParameterChanged |= EditorGUI.EndChangeCheck(); // Value used in the next update.
 			EditorGUILayout.PropertyField(timeScale, TimeScaleLabel);
 			EditorGUILayout.PropertyField(timeScale, TimeScaleLabel);
-			EditorGUILayout.PropertyField(unscaledTime, UnscaledTimeLabel);
 			foreach (var o in targets) {
 			foreach (var o in targets) {
 				var component = o as SkeletonAnimation;
 				var component = o as SkeletonAnimation;
 				component.timeScale = Mathf.Max(component.timeScale, 0);
 				component.timeScale = Mathf.Max(component.timeScale, 0);
 			}
 			}
+			EditorGUILayout.PropertyField(unscaledTime, UnscaledTimeLabel);
 
 
 			EditorGUILayout.Space();
 			EditorGUILayout.Space();
 			SkeletonRootMotionParameter();
 			SkeletonRootMotionParameter();

+ 0 - 5
spine-unity/Assets/Spine/Runtime/spine-unity/ISkeletonAnimation.cs

@@ -43,11 +43,6 @@ namespace Spine.Unity {
 		InFixedUpdate
 		InFixedUpdate
 	}
 	}
 
 
-	public enum UpdateTimeScale {
-		GameTime = 0,
-		UnscaledGameTime
-	}
-
 	public delegate void ISkeletonAnimationDelegate (ISkeletonAnimation animated);
 	public delegate void ISkeletonAnimationDelegate (ISkeletonAnimation animated);
 	public delegate void UpdateBonesDelegate (ISkeletonAnimation animated);
 	public delegate void UpdateBonesDelegate (ISkeletonAnimation animated);