请大佬指点下
SetTouch() {
this.node.on('touch-start', (event) => {
if (this.GameType != 1) return
log('手指按下')
Tween.stopAllByTarget(this.NodeBolickBox)
Tween.stopAllByTarget(this.NodeBolickShadow)
tween(this.NodeBolickBox).to(2, { scale: new Vec3(1, 0.8, 1) }).start()
tween(this.NodeBolickShadow).to(2, { scale: new Vec3(0.9, 0.8, 1) }).start()
}, this);
this.node.on('touch-move', (event) => {
if (this.GameType != 1) return
log('手指移动')
}, this);
this.node.on('touch-end', (event) => {
if (this.GameType != 1) return
log('手指抬起')
Tween.stopAllByTarget(this.NodeBolickBox)
Tween.stopAllByTarget(this.NodeBolickShadow)
let Animation_01 = tween(this.NodeBolickBox).to(0.1, { scale: new Vec3(1, 1.1, 1) }).start()
let Animation_02 = tween(this.NodeBolickBox).to(0.05, { scale: new Vec3(1, 0.95, 1) }).start()
let Animation_03 = tween(this.NodeBolickBox).to(0.05, { scale: new Vec3(1, 1, 1) }).start()
tween(this.NodeBolickBox).sequence(Animation_01, Animation_02, Animation_03): tween // 报错
tween(this.NodeBolickShadow).to(0.2, { scale: new Vec3(1, 1, 1) }).start()
}, this);
}