namespace ET { public static class GlobalMethodHelper { public static async ETTask Call(string methodName, object args) { var dic = Game.Scene.GetComponent().methodDic; if (!dic.TryGetValue(methodName, out var action)) { Log.Error($"don't has the mrthod : {methodName}"); return "系统错误001"; } if (action == null) { Log.Error($"action == null where name = {methodName}"); return "系统错误002"; } return await action.Invoke(args); } } }