EventCustom.ts 294 B

123456789101112
  1. import { _decorator, Event } from 'cc';
  2. const { ccclass } = _decorator;
  3. @ccclass('EventCustom')
  4. export class EventCustom extends Event {
  5. public data: any = null;
  6. constructor(name: string, bubbles?: boolean, data?: any) {
  7. super(name, bubbles);
  8. this.data = data;
  9. }
  10. }