原因:cocos2dx的bug
解决办法:
放到action中,前面添加一个DelayTime延迟,代码如下
this->runAction(Sequence::create(DelayTime::create(0.1f),CallFuncN::create([&](Node* pNode){pNode->removeFromParent();}),NULL));
时间: 2024-10-10 05:56:08
原因:cocos2dx的bug
解决办法:
放到action中,前面添加一个DelayTime延迟,代码如下
this->runAction(Sequence::create(DelayTime::create(0.1f),CallFuncN::create([&](Node* pNode){pNode->removeFromParent();}),NULL));