Commit 4cf70cba authored by Tt's avatar Tt

修改正确动效

parent cca735c4
This diff is collapsed.
......@@ -566,12 +566,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
wordToWordBg(node, target) {
let light = pg.view.find(node, 'light');
let candys = pg.view.find(node, 'candys');
light.active = true;
candys.getComponent(Candy).showAni().then(() => {
cc.tween(light).to(1, { opacity: 0 }).start();
})
// let light = pg.view.find(node, 'light');
// let candys = pg.view.find(node, 'candys');
// light.active = true;
// candys.getComponent(Candy).showAni().then(() => {
// cc.tween(light).to(1, { opacity: 0 }).start();
// })
let right = pg.view.find(node, 'right')
pg.view.visible(right, true)
pg.view.playDBAnimation(right, 'newAnimation', 1)
cc.tween(node)
.to(0.2, { x: target.x, y: target.y, scale: 1 })
.call(() => {
......
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