Make the plugin be compatible with both cocos2d-x-2.2 & cocos2d-x-3.0.
Merge pull request #4 from natural-law/develop

Make the plugin be compatible with both cocos2d-x-2.2 & cocos2d-x-3.0.