示例#1
0
void BattleHUD::ButtonToggleDebugCallback(CCObject* pSender)
{
    BattleScene* parent = static_cast<BattleScene*>(this->getParent());
    parent->TogglePhysicsDebugViewer();

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