cc.eventManager.addLisener({
event: cc.Event.Lisener.Touch_One_By_one;
onTouchBegin:function(touch,event){
if(cc.rectContainsPoint(event.getCurrentTarget().boundingBox(),touch.getLocation()))
{}
},
onTouchBegin:function(touch,evnet){
}
onTouchBegin:function(touch,evnet){
}
},this.Srite);
自定义事件:
对象缓冲池:
cc.pool的使用方法,节省内存
原文链接:/cocos2dx/340943.html