mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[unity] Moved skeleton.Update to UpdateAnimationStatus.
This commit is contained in:
parent
83796890a2
commit
fb2a76248f
@ -236,15 +236,16 @@ namespace Spine.Unity {
|
||||
state.ApplyEventTimelinesOnly(skeleton, issueEvents: false);
|
||||
return;
|
||||
}
|
||||
ApplyAnimation(deltaTime);
|
||||
ApplyAnimation();
|
||||
}
|
||||
|
||||
protected void UpdateAnimationStatus (float deltaTime) {
|
||||
deltaTime *= timeScale;
|
||||
state.Update(deltaTime);
|
||||
skeleton.Update(deltaTime);
|
||||
}
|
||||
|
||||
protected void ApplyAnimation (float deltaTime) {
|
||||
protected void ApplyAnimation () {
|
||||
if (_BeforeApply != null)
|
||||
_BeforeApply(this);
|
||||
|
||||
@ -253,7 +254,6 @@ namespace Spine.Unity {
|
||||
else
|
||||
state.ApplyEventTimelinesOnly(skeleton, issueEvents: true);
|
||||
|
||||
skeleton.Update(deltaTime);
|
||||
AfterAnimationApplied();
|
||||
}
|
||||
|
||||
|
||||
@ -357,7 +357,7 @@ namespace Spine.Unity {
|
||||
state.ApplyEventTimelinesOnly(skeleton, issueEvents: false);
|
||||
return;
|
||||
}
|
||||
ApplyAnimation(deltaTime);
|
||||
ApplyAnimation();
|
||||
}
|
||||
|
||||
protected void SyncSubmeshGraphicsWithCanvasRenderers () {
|
||||
@ -381,9 +381,10 @@ namespace Spine.Unity {
|
||||
protected void UpdateAnimationStatus (float deltaTime) {
|
||||
deltaTime *= timeScale;
|
||||
state.Update(deltaTime);
|
||||
skeleton.Update(deltaTime);
|
||||
}
|
||||
|
||||
protected void ApplyAnimation (float deltaTime) {
|
||||
protected void ApplyAnimation () {
|
||||
if (BeforeApply != null)
|
||||
BeforeApply(this);
|
||||
|
||||
@ -392,7 +393,6 @@ namespace Spine.Unity {
|
||||
else
|
||||
state.ApplyEventTimelinesOnly(skeleton, issueEvents: true);
|
||||
|
||||
skeleton.Update(deltaTime);
|
||||
AfterAnimationApplied();
|
||||
}
|
||||
|
||||
|
||||
@ -123,10 +123,11 @@ namespace Spine.Unity {
|
||||
if (updateMode <= UpdateMode.OnlyAnimationStatus)
|
||||
return;
|
||||
|
||||
ApplyAnimation(deltaTime);
|
||||
skeleton.Update(deltaTime);
|
||||
ApplyAnimation();
|
||||
}
|
||||
|
||||
protected void ApplyAnimation (float deltaTime) {
|
||||
protected void ApplyAnimation () {
|
||||
if (_BeforeApply != null)
|
||||
_BeforeApply(this);
|
||||
|
||||
@ -148,7 +149,6 @@ namespace Spine.Unity {
|
||||
#else
|
||||
translator.Apply(skeleton);
|
||||
#endif
|
||||
skeleton.Update(deltaTime);
|
||||
AfterAnimationApplied();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user