COCOS2D-JS 学习笔记(一)
1、给一个Layer添加触摸事件,前提需要在cocos studio当中吧panel的交互去掉,不然会不能自定义其触摸事件,cc.eventManager.addListener({
prevTouchId: -1,
event: cc.EventListener.TOUCH_ALL_AT_ONCE,
onTouchesEnded:function (touches, event) {
var to
转载
2015-11-26 19:15:54 ·
474 阅读 ·
0 评论