void BattleHUD::ButtonToggleDebugCallback(CCObject* pSender) { BattleScene* parent = static_cast<BattleScene*>(this->getParent()); parent->TogglePhysicsDebugViewer(); //BattleEndLayer* layer = BattleEndLayer::create(); //this->addChild(layer); }
void SkirmishHUD::ButtonToggleDebugCallback(CCObject* pSender) { BattleScene* parent = static_cast<BattleScene*>(this->getParent()); parent->TogglePhysicsDebugViewer(); }