modify to adapt to cocos2d-x 3.0

modify to adapt to cocos2d-x 3.0