// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import GUIMediator from "../../scripts/GEngine/gui/GUIMediator";
import SceneManager from "../../scripts/GEngine/scenes/SceneManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class PrepareMediator extends GUIMediator {

    @property(cc.Button)
    testButton:cc.Button=null;
    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {
        
    }

    /**
     * 开始游戏
     */
    StartGame():void{
        this.HideSelf();
        SceneManager.single.Swicth("FightingScene");
    }

    // update (dt) {}
}
