const { ccclass , property } = cc . _decorator ; @ ccclass export class EventManager extends cc . Component { addListener ( type , listener , target ) { this . node . on ( type , listener , target , false ) ; } removeListener ( type , listener , target ) { this . node . off ( type , listener , target ) ; } triggerEvent ( type , msg ) { this . node . emit ( type , msg ) ; } }