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.
23 lines
598 B
23 lines
598 B
|
|
|
|
const { ccclass, property } = cc._decorator;
|
|
|
|
@ccclass
|
|
export default class GameLoading extends cc.Component {
|
|
|
|
protected showNode: cc.Node = null;
|
|
protected btnRestart: cc.Node = null;
|
|
protected btnBack: cc.Node = null;
|
|
protected btnShare: cc.Node = null;
|
|
protected fireworksNode: cc.Node = null;
|
|
|
|
|
|
protected start(): void {
|
|
this.btnBack = this.node.getChildByName("bg").getChildByName("snBG").getChildByName("snBack");
|
|
this.btnBack.on("click", () => {
|
|
this.node.removeFromParent();
|
|
this.node.destroy();
|
|
}, this);
|
|
|
|
}
|
|
}
|
|
|