Static method should be declared before override functions. Please refer to [coco2d-x coding style](http://www.cocos2d-x.org/wiki/Cocos2d_C++_Coding_Style#Declaration-Order) for more information.