少年修仙传客户端基础资源
hch
2024-09-26 f44f7df16e9f510c21aadee1d9f08e29a3bb415e
Assets/Editor/Tool/ConfigClassGenerate.cs
@@ -160,11 +160,11 @@
        field = field.Replace(" ", "");
        if (type.Contains("int[][]"))
        {
            return StringUtility.Contact(field, " = JsonMapper.ToObject<int[][]>(tables", "[", index, "]", ")", "; ");
            return StringUtility.Contact(field, " = JsonMapper.ToObject<int[][]>(tables", "[", index, "].Replace(\"(\", \"[\").Replace(\")\", \"]\")); ");
        }
        else if (type.Contains("float[][]"))
        {
            return StringUtility.Contact(field, " = JsonMapper.ToObject<float[][]>(tables", "[", index, "]", ")", "; ");
            return StringUtility.Contact(field, " = JsonMapper.ToObject<float[][]>(tables", "[", index, "].Replace(\"(\", \"[\").Replace(\")\", \"]\")); ");
        }
        else if (type.Contains("int[]"))
        {