import AnimInAndOut from "./AnimInAndOut";
import Main from "./Main";

const { ccclass, property } = cc._decorator;

@ccclass
export default class PanelFailed extends cc.Component {

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start() {

    }

    onClickRestart() {
        let mainComp = cc.Canvas.instance.node.getComponent(Main)
        mainComp.reset(true)

        let comp = this.getComponent(AnimInAndOut)
        comp.animateAndDestroy();
    }

    // update (dt) {}
}
