五:Cocos2d-x 的 Director
Director 采用单例设计模式,确保一个游戏只有一个导演。
CCDirector* pDirector = CCDiretor: sharedDirector();
Director实际上是在维护一个堆栈。
runWithScene //启动场景
replceScene //替换场景
pushScene // 堆栈方法
popScene // 堆栈方法
pause // 进入后台调用方法
resume //恢复方法
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。