void BasicScene::onWinning()
{
	/* To do 在这里添加你想要添加的代码*/
	auto hat = dynamic_cast<Hat*> (this->getChildByTag(0));
	int hat_num = hat->hat_num;
	hat->removeItself();

	auto actor = this->getChildByTag(1);
	hat = Hat::create(hat_num);
	hat->setPosition(actor->getPositionX(), actor->getPositionY()+75);
	hat->comeOut();
	this->addChild(hat);

	auto winning_layer = WinningLayer::create();

	// Set initial size
	winning_layer->setScale(0.1,0.1);

	// Scale up action
	auto scale = ScaleTo::create(0.5f,1,1); 

	winning_layer->runAction(scale);

	this->getParent()->addChild(winning_layer);
	
}
bool StandardCategory::deleteViaGui() {
  if (removeItself()) {
    serviceRoot()->requestItemRemoval(this);
    return true;
  }
  else {
    return false;
  }
}