mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
优化GameComponent代码
This commit is contained in:
@@ -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}】的全局事方法不存在`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user