mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Added handling for thang type goesTo animation properties.
This commit is contained in:
parent
2a3e47b08f
commit
ee24263232
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
|
|||
@actionQueue.push @currentRootAction.relatedActions.end if @currentRootAction?.relatedActions?.end
|
||||
@actionQueue.push action.relatedActions.begin if action.relatedActions?.begin
|
||||
@actionQueue.push action
|
||||
if action.goesTo and nextAction = @actions[action.goesTo]
|
||||
@actionQueue.push nextAction if nextAction
|
||||
@currentRootAction = action
|
||||
@playNextAction()
|
||||
|
||||
|
|
Loading…
Reference in a new issue