--
You received this message because you are subscribed to the Google Groups "cocos2d JS development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocos2d-js-dev...@googlegroups.com.
To post to this group, send email to cocos2d-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, Riq and Guanghui
In my opinion, our UI Node directly inherit from cocos2d:Node.
1. It should be if we want to add cocos2d:Node or cocos2d:Sprite together with UI Node to the children of UI Node.
In this situation, I guess we can reserve AddChild function as our API, and check the real type of Node, and route it to different internal function, to AddProtectedNodeChild or AddCocos2dNodeChild.