mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
[unity] Minor cleanup.
This commit is contained in:
parent
bd7f7eb181
commit
cf654d3768
@ -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();
|
||||||
|
|||||||
@ -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);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user