Skip to content

Home > @esengine/ecs-framework-monorepo > GlobalEventBus > getInstance

GlobalEventBus.getInstance() method

获取全局事件总线实例

Signature:

typescript
static getInstance(debugMode?: boolean): EventBus;

Parameters

Parameter

Type

Description

debugMode

boolean

(Optional) 是否启用调试模式

Returns:

EventBus

基于 MIT 许可证发布