[unity] Minor cleanup.

This commit is contained in:
Harald Csaszar 2022-06-01 16:58:11 +02:00
parent bd7f7eb181
commit cf654d3768
2 changed files with 1 additions and 6 deletions

View File

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

View File

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