修改MessageManager.dispatchEvent的args参数可接受任意数量

This commit is contained in:
donggang
2024-05-20 09:57:55 +08:00
parent 75055b7484
commit 8dde41ea6c
3 changed files with 40 additions and 41 deletions

View File

@@ -84,7 +84,7 @@ export class GameComponent extends Component {
* @param type 资源类型
* @param bundleName 远程资源包名
*/
getRes<T extends Asset>(path: string, type?: __private._types_globals__Constructor<T> | null, bundleName?: string): T | null {
getRes<T extends Asset>(path: string, type?: __private.__types_globals__Constructor<T> | null, bundleName?: string): T | null {
return oops.res.get(path, type, bundleName);
}