add commits for init in cocos c++ codes