少年修仙传客户端基础资源
client_Hale
2019-07-05 6ef4a28cb0de98a2f8f35695cdc6fe13d2b491f1
382 lua战斗
1个文件已修改
15 ■■■■■ 已修改文件
Assets/Editor/Confusion/Editor/ConfusionContorller.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Confusion/Editor/ConfusionContorller.cs
@@ -150,18 +150,13 @@
            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;
@@ -201,7 +196,7 @@
            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];
@@ -209,7 +204,7 @@
                }
                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);
                }
            }
        }
@@ -222,7 +217,7 @@
                Debug.LogFormat("    |- 处理Method的替换: {1} => {2}", mi.DeclaringType, mi.Name, _replacePair[mi.Name]);
            }
        }
    }
    private static void HandleField(FieldInfo fi)