Commit e6b81a06 by Matt

disable tween

parent 22c4134b
......@@ -96,19 +96,19 @@ class Map extends egret.Sprite {
centerGrid.bg.texture = RES.getRes('grid_select_jpg')
const runners = Store.getState().runners
// this.touchArea.alpha = 1
this.touchArea.alpha = 1
this.touchArea.x = x - 2 * gridWidth
this.touchArea.y = y - 2 * gridHeight
// surroundedGrids.forEach(grid => {
// grid.alpha = 1
// })
const twTouchArea = egret.Tween.get( this.touchArea );
twTouchArea.to( {alpha: 1}, 300 ).call(function() {
surroundedGrids.forEach(grid => {
grid.alpha = 1
})
// egret.Tween.get(grid).to({ alpha: 1 }, 300)
})
// const twTouchArea = egret.Tween.get( this.touchArea );
// twTouchArea.to( {alpha: 1}, 300 ).call(function() {
// surroundedGrids.forEach(grid => {
// grid.alpha = 1
// })
// // egret.Tween.get(grid).to({ alpha: 1 }, 300)
// })
// surroundedGrids.forEach(grid => {
// egret.Tween.get(grid).to({ alpha: 1 }, 300)
// })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment