From 13e1075f541a7fe632c299149bc4906f3a973598 Mon Sep 17 00:00:00 2001 From: dgflash Date: Mon, 26 Aug 2024 13:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96GameComponent=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/module/common/GameComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/module/common/GameComponent.ts b/assets/module/common/GameComponent.ts index 2b34f9d..8137f86 100644 --- a/assets/module/common/GameComponent.ts +++ b/assets/module/common/GameComponent.ts @@ -370,7 +370,7 @@ export class GameComponent extends Component { for (const name of args) { var func = self[name]; if (func) - this.on(name, self[name], this); + this.on(name, func, this); else console.error(`名为【${name}】的全局事方法不存在`); }