mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-08 03:16:49 +08:00
修改全局消息触发器中自定义参数为any类型
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: dgflash
|
||||
* @Date: 2022-04-14 17:08:01
|
||||
* @LastEditors: dgflash
|
||||
* @LastEditTime: 2022-09-02 13:28:16
|
||||
* @LastEditTime: 2022-12-13 11:36:00
|
||||
*/
|
||||
import { Asset, Component, isValid, Node, _decorator } from "cc";
|
||||
import { EventDispatcher } from "../common/event/EventDispatcher";
|
||||
@@ -106,7 +106,7 @@ export class GameComponent extends Component {
|
||||
* @param event 事件名
|
||||
* @param args 事件参数
|
||||
*/
|
||||
dispatchEvent(event: string, args = null) {
|
||||
dispatchEvent(event: string, args: any = null) {
|
||||
this.eventDispatcher.dispatchEvent(event, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user