init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { _decorator, Component, Node, EventTarget } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('EventCenter')
|
||||
export class EventCenter extends Component {
|
||||
static onEnemyDie = new EventTarget();
|
||||
static powerChange = new EventTarget();
|
||||
static coinCountChange = new EventTarget();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user