Commit ffc31d80 authored by liujiangnan's avatar liujiangnan

feat

parent f2f9be40
......@@ -331,6 +331,22 @@ export default class NewClass extends middleLayerBase {
star.active = true;
star.getComponent(dragonBones.ArmatureDisplay).playAnimation('normal', 1);
const animData = this.getData('NJ_game_select');
if(animData && animData.folderCover) {
cc.assetManager.loadRemote(animData.folderCover, async (err, res) => {
const apple = cc.find('middleLayer/coolcat/apple');
apple.active = true;
apple.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(res);
cc.tween(apple)
.set({ scale: 0 })
.to(0.5, { scale: 1 }, { easing: 'backOut' })
.to(0.1, { angle: 20 })
.to(0.2, { angle: -20 })
.to(0.1, { angle: 0 })
.start()
})
}
setTimeout(() => {
// this.showConfirm('还想再来一次吗?', () => {
// this.hideGetParterAnim();
......
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