import { _decorator, Component } from "cc"; import li_EventManager from "./li_EventManager"; const { ccclass } = _decorator; @ccclass export default class hg_Component extends Component { protected m_config = {}; public ExitViewFunc = null; //----以下接口由子类实现----------------------------- openUIDataCT(data) { } onDestroy() { li_EventManager.I.removeAllInnerEL(this); li_EventManager.I.removeAllNetEL(this); this.ExitViewFunc && this.ExitViewFunc(); this.onNodeDestroy(); this.onSceenDestroy(); // li_EventManager.I.onInnerEL(InnerMsgCode.Node_Destroy_Release, this.node); } /**页面传值接收方法 */ openUIData(data) { if (data && data.ExitViewFunc) { this.ExitViewFunc = data.ExitViewFunc; } //设置截图背景纹理 if (data && data.screenShotTex){ // let blurMask = this.node.getComponentInChildren(BlurMask); // if (blurMask){ // blurMask.setScreenShotTexture(data.screenShotTex) // } } this.openUIDataCT(data) } onNodeDestroy() { } onSceenDestroy() { } }