消除我特牛
xiaochuwoteniu/assets/Platform/th/ScaleShowScripts.ts

25 lines
460 B

4 months ago
const {ccclass, property} = cc._decorator;
@ccclass
export default class ScaleShowScripts extends cc.Component {
@property(cc.Integer)
startScale: number = 0;
@property(cc.Integer)
endScale: number = 1;
// LIFE-CYCLE CALLBACKS:
onLoad () {
this.node.scale = this.startScale;
cc.tween(this.node).to(0.3,{scale:this.endScale},{easing:cc.easing.backOut}).start();
}
start () {
}
// update (dt) {}
}