Last active
August 29, 2015 14:15
-
-
Save takashi1975/37f5467e0d9507299b36 to your computer and use it in GitHub Desktop.
Cocos2d-x 特定のノード全てに処理 (名前がつけてあるといい)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| { | |
| newTiledMap->enumerateChildren("xxx", [](Node * node) -> bool { | |
| if (auto sprite = dynamic_cast<Sprite *>(node)) | |
| { | |
| //... | |
| } | |
| return false; | |
| }); | |
| } |
Author
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考:
http://qiita.com/taoru/items/f562fd5566ba6cad1053