public LayerColor未定义基类的解决办法 这种情况下,是由于缺少$(EngineRoot)、#include "cocos-ext.h" USING_NS_CC; USING_NS_CC_EXT; 添加即可。