import { _decorator, Color, director, EventTarget, Label } from 'cc'; import { DEBUG } from 'cc/env'; const { ccclass, property } = _decorator; /** * @description 本地存储管理 */ export class EventManager { static EventType = { Add_haert: 'Add_haert', Cut_haert: 'Cut_haert', Add_Score: 'Add_Score', Reset_Score: 'Reset_Score', Set_Add_Score_BOOL: 'Set_Add_Score_BOOL', Reset_Role: 'Reset_Role', Die_Role: 'Die_Role', initOver: 'initOver', OpenUIPnael: 'OpenUIPnael', } private static _instance: EventManager = null; static get instance() { if (this._instance) { return this._instance; } this._instance = new EventManager(); return this._instance; } public et: EventTarget = new EventTarget(); ClearAll() { this.et = null this.et = new EventTarget(); } }