mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Update AnimationState.lua (#1691)
This commit is contained in:
parent
e1692353f2
commit
40d738d8b8
@ -983,6 +983,14 @@ function AnimationState:getCurrent (trackIndex)
|
|||||||
return self.tracks[trackIndex]
|
return self.tracks[trackIndex]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function AnimationState:getLast (trackIndex)
|
||||||
|
local lastEntry = self.tracks[trackIndex]
|
||||||
|
while lastEntry.next do
|
||||||
|
lastEntry = lastEntry.next
|
||||||
|
end
|
||||||
|
return lastEntry
|
||||||
|
end
|
||||||
|
|
||||||
function AnimationState:clearListeners ()
|
function AnimationState:clearListeners ()
|
||||||
self.onStart = nil
|
self.onStart = nil
|
||||||
self.onInterrupt = nil
|
self.onInterrupt = nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user