mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +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]
|
||||
end
|
||||
|
||||
function AnimationState:getLast (trackIndex)
|
||||
local lastEntry = self.tracks[trackIndex]
|
||||
while lastEntry.next do
|
||||
lastEntry = lastEntry.next
|
||||
end
|
||||
return lastEntry
|
||||
end
|
||||
|
||||
function AnimationState:clearListeners ()
|
||||
self.onStart = nil
|
||||
self.onInterrupt = nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user