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

import UIManager from "../UIManager";


const {ccclass, property} = cc._decorator;

export enum ScreenName {
    LEVEL, MAINMENU, INGAME, LUCKYSPIN
}

@ccclass
export default class ScreenUI extends cc.Component {

    screenName: ScreenName = ScreenName.MAINMENU;
    uiManager: UIManager = null;

    initialize(uiManager: UIManager) {
        this.uiManager = uiManager;
    }

    active() {
        this.node.active = true;
    }

    deactive() {
        this.node.active = false;
    }

}
