You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
460 B
24 lines
460 B
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) {}
|
|
}
|
|
|