Refactored animation complete callback to sync with cocos2d-x API