请教scene之间的数据交互问题

使用cocos2dx做一个游戏,如果存在多个scene,在scene A中的数据,如何在scene B中使用了?

如,有一个sprite在scene A中获取了一定的分数,然后调用 CCDirector::sharedDirector()->replaceScene(scene B),切换到scene B中,和这个sprite相关的数据如何传递到sprite中了?

把这个sprite定义为全局变量,所有的scene都include这个sprite,然后在每个scene对于这个sprite的修改是全局的?

还是有什么其他方法了?

传送门http://www.cocoachina.com/bbs/read.php?tid=211748

— Begin quote from ____

引用第1楼luckyyangl于2014-09-10 11:16发表的 :
传送门http://www.cocoachina.com/bbs/read.php?tid=211748
http://www.cocoachina.com/bbs/job.php?action=topost&tid=227988&pid=1049823

— End quote

哈哈,太感谢了O(∩_∩)O哈哈~