If not mistaken, I think, this could be a bug ? I just test it out with a regular button, and applied a child node label(cc.label), and used the code above, and still it displays in simulator, but not on web. Just like in export, I export to apk, and ipa, and it works as it's supposed to. But when I export to Web Desktop, it doesn't display the PAUSE string. The code seems to be working, by pausing the game, and then press, unpause game, but it just doesn't display the string = PAUSE like below:
Maybe, it's my code, but it seems very strange though......God Bless....