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.
26 lines
446 B
26 lines
446 B
const {ccclass, property} = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class DiaoyuTips extends cc.Component {
|
|
|
|
// onLoad () {}
|
|
|
|
start () {
|
|
|
|
}
|
|
|
|
protected onEnable(): void {
|
|
this.tick = 0;
|
|
}
|
|
|
|
tick = 0;
|
|
update (dt) {
|
|
if(this.node.active){
|
|
this.tick += dt;
|
|
if(this.tick > 3.0){
|
|
this.tick = 0;
|
|
this.node.active = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|