mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[haxe] Port of commit c2fe1a3, Added TrackEntry IsNextReady. See #2547.
This commit is contained in:
parent
9f42570868
commit
0e9a004388
@ -116,6 +116,12 @@ class TrackEntry implements Poolable {
|
|||||||
return nextTrackLast != -1;
|
return nextTrackLast != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Returns true if there is a {@link #getNext()} track entry and it will become the current track entry during the next
|
||||||
|
* {@link AnimationState#update(float)}. */
|
||||||
|
public function isNextReady():Bool {
|
||||||
|
return next != null && nextTrackLast - next.delay >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
public function reset():Void {
|
public function reset():Void {
|
||||||
next = null;
|
next = null;
|
||||||
previous = null;
|
previous = null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user