sceneChanged事件

This commit is contained in:
YHH
2020-07-12 23:30:48 +08:00
parent 032b293085
commit 14598f08c7
9 changed files with 53 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ class Emitter<T> {
this._messageTable.get(eventType).remove(handler);
}
public emit(eventType: T, data: any){
public emit(eventType: T, data?: any){
let list: Function[] = this._messageTable.get(eventType);
if (list){
for (let i = list.length - 1; i >= 0; i --)