Button->addTouchEventListener(this, toucheventselector(GameLayer::touchEvent));
touchEvent()里就好像改不了变量的值了(只能在touchEvent()变了值,在touchEvent()外部又回复原来的值了…)

…怎么办…
Button->addTouchEventListener(this, toucheventselector(GameLayer::touchEvent));
touchEvent()里就好像改不了变量的值了(只能在touchEvent()变了值,在touchEvent()外部又回复原来的值了…)

…怎么办…
是代码写错了