我已经创建了一个触摸时的暂停按钮,场景被暂停菜单所取代...
当我们恢复场景时,back...however函数一直在调用它们自己……
当我切换到另一个场景时,如何暂停当前文件中的所有内容...
发布于 2010-12-27 13:21:59
"on touch",运行场景应该调用:
[[CCDirector sharedDirector] pushScene: [PauseMenu scene]];暂停菜单的“返回游戏”按钮应该会调用:
[[CCDirector sharedDirector] popScene];将暂停菜单推到适当的位置,应该“暂停”当前被推回的场景,当您弹出它时,它应该继续运行。
文档:http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_director.html
https://stackoverflow.com/questions/4498319
复制相似问题