// Learn TypeScript: // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html // Learn Attribute: // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html const { ccclass, property } = cc._decorator; @ccclass export default class AniOpenPanel extends cc.Component { onEnable() { this.node.scale = 0; //1 cc.tween(this.node).to(0.3,{scale:1},{easing:"backOut"}).start(); //2 //this.node.runAction(cc.scaleTo(0.3, 1).easing(cc.easeBackOut())); } }