import { _decorator, Component, EventInfo, Node } from ‘cc’;
const { ccclass, property } = _decorator;
@ccclass(‘BlockEvent’)
export class BlockEvent extends Event {
constructor(name: string, bubbles?:boolean, detail?: any){
var e: EventInit;
e.bubbles = bubbles;
super( name , e);
this.detail = detail
}
public detail: any = null;
}
这个是我的自定义类
这又是什么情况呢
求大佬 帮帮忙

