| | |
| | | return; |
| | | } |
| | | |
| | | if(mi.Name.Contains("UpdateOffLinePlayer") && mi.ReflectedType == typeof(GAMgr)) |
| | | { |
| | | Debug.Log("aaaa"); |
| | | } |
| | | |
| | | if(!AssemblyTypes.Contains(mi.ReflectedType)) |
| | | if (!AssemblyTypes.Contains(mi.ReflectedType)) |
| | | { |
| | | Debug.LogFormat("<color=red>程序集中不包含方法所归属的类型: {0}</color>", mi.ReflectedType); |
| | | return; |
| | | } |
| | | |
| | | if(mi.IsSpecialName) |
| | | if (mi.IsSpecialName) |
| | | { |
| | | Debug.LogFormat("不处理set和get方法: {0}", mi.Name); |
| | | return; |
| | |
| | | Dictionary<string, string> _parentReplacePair = null; |
| | | if (DataModel.confusionDict.TryGetValue(mi.ReflectedType.BaseType, out _parentReplacePair)) |
| | | { |
| | | if(_parentReplacePair.ContainsKey(mi.Name)) |
| | | if (_parentReplacePair.ContainsKey(mi.Name)) |
| | | { |
| | | // 赋值为父类替换名 |
| | | _replacePair[mi.Name] = _parentReplacePair[mi.Name]; |
| | |
| | | } |
| | | else |
| | | { |
| | | Debug.LogFormat("<color=red>父类: {0} 没有为这个方法进行混淆逻辑处理: {1}</color>", mi.ReflectedType.BaseType,mi.Name); |
| | | Debug.LogFormat("<color=red>父类: {0} 没有为这个方法进行混淆逻辑处理: {1}</color>", mi.ReflectedType.BaseType, mi.Name); |
| | | } |
| | | } |
| | | } |
| | |
| | | Debug.LogFormat(" |- 处理Method的替换: {1} => {2}", mi.DeclaringType, mi.Name, _replacePair[mi.Name]); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | private static void HandleField(FieldInfo fi) |