We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Reverted CCDirector singleton to original implementation
Reverted CCDirector singleton to original implementation
Bug #1155 [Closed]
- Project changed from cocos2d-x to cpp
- Category deleted (
5)
- Target version deleted (
26)
- Target version set to cocos2d-2.0-rc0a-x-2.0
Status: | Closed | |
---|---|---|
Start date: | 2012-04-12 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | - | |
Target version: | cocos2d-2.0-rc0a-x-2.0 |
We must take care of the life cycle of CCDirector which should be firstly initialized and be destroyed at the last. Therefore, we should use a global object variable rather than a global object pointer variable.