|
@@ -184,6 +184,8 @@ bool GameScene::onContactBegin(PhysicsContact& contact) {
|
|
|
text->setPosition(visibleSize.width/2, visibleSize.height/2);
|
|
|
this->addChild(text);
|
|
|
text->runAction(FadeOut::create(3));
|
|
|
+ } else if (nodeB->getTag() == SAVE_TAG && nodeA->getTag() == BOTTOM_TAG) {
|
|
|
+ nodeB->removeFromParentAndCleanup(true);
|
|
|
}
|
|
|
}
|
|
|
return true;
|