15 lines
275 B
TypeScript
15 lines
275 B
TypeScript
import { UIBase } from '../UI/UIBase';
|
|
|
|
const { ccclass, property } = cc._decorator;
|
|
|
|
@ccclass
|
|
export class LevelUp extends UIBase {
|
|
public static prefabPath: string = 'prefabs/UIPrefab/levelup_anim';
|
|
|
|
init() {
|
|
setTimeout(() => {
|
|
this.node.destroy();
|
|
}, 2000);
|
|
}
|
|
}
|