Animation ended handler
Currently the only way to react to animations ending is to manually maintain a list of playing animations and check all of them every frame. This is needlessly tedious and could have performance issues in scenes with a lot of NPCs.
Add a handler for animations ending to AnimationController.lua