반응형
걍 머리가 나빠서 메모용. 2.0에서 deprecated 된게 몇개 있네.
CCDirector *sharedDirector = [CCDirector sharedDirector];
CCSpriteFrameCache *sharedCache = [CCSpriteFrameCache sharedSpriteFrameCache];
CCTextureCache *sharedTexCache = [CCTextureCache sharedTextureCache];
CCTouchDispatcher *sharedDispatcher = [CCTouchDispatcher sharedDispatcher];
//deprecated
CCTouchDispatcher *sharedDispatcher = [[CCDirector sharedDirector] touchDispatcher];
SimpleAudioEngine* sharedEngine = [SimpleAudioEngine sharedEngine];
//deprecatedCCActionManager *sharedManager = [CCActionManager sharedManager];
CCActionManager *sharedManager = [[CCDirector sharedDirector] actionManager];
CDAudioManager *sharedManager = [CDAudioManager sharedManager];
반응형
'iDev' 카테고리의 다른 글
cocos2d action 이 끝났을때 callback function 사용 (0) | 2012.06.03 |
---|---|
iOS mockup design template 무료 받기 (0) | 2012.06.02 |
Xcode coloring 티스토리에서 유지하기 (0) | 2012.05.28 |
Dash(free Mac App)으로 각종 언어 API 문서 보기 (0) | 2012.05.28 |
cocos2d sprite sheet HD(retina) 적용하기 (0) | 2012.05.26 |