import { _decorator, Component, Node } from 'cc'; import { oops } from 'db://oops-framework/core/Oops'; const { ccclass, property } = _decorator; @ccclass('stoast') export class stoast extends Component { onAdded(args: any) { console.log("toast打开",args) } private close() { oops.gui.removeByNode(this.node); } onDestroy() { } }