想做一个让RichtText里逐个添加节点的效果,执行后控制台打印正常 可是窗口上什么也没显示,然后我如果不使用计时器 就可以正常显示 想问一下 这是什么原因
void RichTextView::onPlay(float dt)
{
CCLOG("start schedule");
if (nodeList.empty()) {
CCLOG("NULL LIST");
this->unschedule(schedule_selector(RichTextView::onPlay));
onPlayFinish();
return;
}
CCLOG("NOT NULL LIST");
auto node = nodeList.front();
ui::RichText::pushBackElement(node);
nodeList.pop_front();
}