1、//更换位置中心,为动画做准备
this.bombBtn.pivot(this.bombBtn.width/2,this.bombBtn.height/2)
2、点击动画,先放大再缩小
btnScaleChangeAnimation(btn,resultEvent){
Laya.Tween.to(btn,{scaleX:1.2,scaleY:1.2},200,
Laya.Ease.strongIn,
Laya.Handler.create(this,function(){
Laya.Tween.to(btn,{scaleX:1/1.2,scaleY:1/1.2},200,
Laya.Ease.strongIn,
Laya.Handler.create(this,function(){
resultEvent();
}))
}))
}
3、调用点击动画方法,传递事件函数作为参数
this.btnScaleChangeAnimation(this.bombBtn,function(){
console.log("77777777")
})
4、进一步向事件方法内传递this
btnScaleChangeAnimation(b