// 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 PopupName {
    DAILYREWARD, LOSE, WIN, SETTING, SHOPCOIN, SHOPSKIN
}

@ccclass
export default class PopupUI extends cc.Component {
    
    popupName: PopupName = PopupName.SETTING;

    uiManager: UIManager;

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

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

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