I have a game scene which has 2 layers as shown below , when the user taps the Pause button am adding a Pause window layer as a child to Status bar layer. Game is in progress so
You can enable and disable touch like this :
Disable touch before pause :
[self setIsTouchEnabled:NO]
Enable again after resume :
[self setIsTouchEnabled:YES]
In cocos2d-x
this->setTouchEnabled(false);