Browse Source

Remover drop assim que ele cair

capellaresumo 7 years ago
parent
commit
7287cafe4c

+ 2 - 0
Classes/GameScene.cpp

@@ -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;

BIN
proj.ios_mac/RedCore2.xcodeproj/project.xcworkspace/xcuserdata/capella.xcuserdatad/UserInterfaceState.xcuserstate