| | |
| | | sb.AppendLine(" {");
|
| | | sb.AppendLine(" configName = configName.Substring(0, configName.Length - 6);");
|
| | | sb.AppendLine(" }");
|
| | | sb.AppendLine(" TextAsset textAsset = await ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
|
| | | sb.AppendLine(" TextAsset textAsset = ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
|
| | | sb.AppendLine(" if (textAsset != null)");
|
| | | sb.AppendLine(" {");
|
| | | sb.AppendLine(" string[] lines = textAsset.text.Split('\\n');");
|
| | |
| | | sb.AppendLine(" {");
|
| | | sb.AppendLine(" string configName = typeof(T).Name;");
|
| | | sb.AppendLine();
|
| | | sb.AppendLine(" TextAsset textAsset = await ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
|
| | | sb.AppendLine(" TextAsset textAsset = ResManager.Instance.LoadAsset<TextAsset>(\"Config\", configName);");
|
| | | sb.AppendLine(" if (textAsset != null)");
|
| | | sb.AppendLine(" {");
|
| | | sb.AppendLine(" string[] lines = textAsset.text.Split('\\n');");
|