cocos creator 摇杆(单触点)
cc.Class({
extends: cc.Component,
properties: {
},
onLoad () {
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchDown, this);
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
this.node.on(cc.
原创
2021-03-25 21:45:14 ·
180 阅读 ·
0 评论