mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-08 11:46:53 +08:00
parent
fc4895ad95
commit
97f9b7e4d2
@ -107,6 +107,7 @@ void spAnimationState_update (spAnimationState* self, float delta) {
|
|||||||
int count = (int)(time / endTime);
|
int count = (int)(time / endTime);
|
||||||
if (current->listener) current->listener(self, i, ANIMATION_COMPLETE, 0, count);
|
if (current->listener) current->listener(self, i, ANIMATION_COMPLETE, 0, count);
|
||||||
if (self->listener) self->listener(self, i, ANIMATION_COMPLETE, 0, count);
|
if (self->listener) self->listener(self, i, ANIMATION_COMPLETE, 0, count);
|
||||||
|
if (i >= self->trackCount || !self->tracks[i]) continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current->next) {
|
if (current->next) {
|
||||||
@ -160,6 +161,7 @@ void spAnimationState_apply (spAnimationState* self, spSkeleton* skeleton) {
|
|||||||
if (self->listener) self->listener(self, i, ANIMATION_EVENT, event, 0);
|
if (self->listener) self->listener(self, i, ANIMATION_EVENT, event, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i >= self->trackCount || !self->tracks[i]) continue;
|
||||||
current->lastTime = current->time;
|
current->lastTime = current->time;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,7 +57,7 @@ namespace Spine {
|
|||||||
|
|
||||||
public void Update (float delta) {
|
public void Update (float delta) {
|
||||||
delta *= timeScale;
|
delta *= timeScale;
|
||||||
for (int i = 0, n = tracks.Count; i < n; i++) {
|
for (int i = 0; i < tracks.Count; i++) {
|
||||||
TrackEntry current = tracks[i];
|
TrackEntry current = tracks[i];
|
||||||
if (current == null) continue;
|
if (current == null) continue;
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ public class AnimationState {
|
|||||||
|
|
||||||
public void update (float delta) {
|
public void update (float delta) {
|
||||||
delta *= timeScale;
|
delta *= timeScale;
|
||||||
for (int i = 0, n = tracks.size; i < n; i++) {
|
for (int i = 0; i < tracks.size; i++) {
|
||||||
TrackEntry current = tracks.get(i);
|
TrackEntry current = tracks.get(i);
|
||||||
if (current == null) continue;
|
if (current == null) continue;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user