BlendFunc cbl = {GL_DST_COLOR, GL_ONE};
m_animal->setBlendFunc(cbl);
m_animal->setColor(Color3B::RED);
m_animal->stopAllActions();
m_animal->runAction(Sequence::create(DelayTime::create(0.2f),CallFunc::create([this](){
BlendFunc cbl = {GL_DST_COLOR, GL_ONE};
m_animal->setBlendFunc(cbl);
m_animal->setColor(Color3B::WHITE);
m_animal->setBlendFunc(cbl);
m_animal->setColor(Color3B::RED);
m_animal->stopAllActions();
m_animal->runAction(Sequence::create(DelayTime::create(0.2f),CallFunc::create([this](){
BlendFunc cbl = {GL_DST_COLOR, GL_ONE};
m_animal->setBlendFunc(cbl);
m_animal->setColor(Color3B::WHITE);
}),nullptr));
0.2秒之后换回正常颜色