This commit is contained in:
huyulong 2024-12-29 10:44:21 +08:00
commit 7efde543f1
3 changed files with 696 additions and 1147 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -372,9 +372,15 @@ public class ZZUIManager : MonoBehaviour
hidePositionX = 337f;
showPositionX = 1.159973f;
panelAMoveDistance = 382f;
if(ReadRoom.instance.iszongzhihui)
{
Commend1.SetActive(true);
}
#region 11
#region
//偷懒 拉一坨给HYL geigei
Icn_Stairway_1.onClick.AddListener(() =>
{
louhao = 2;
@ -1307,30 +1313,32 @@ public class ZZUIManager : MonoBehaviour
}
}
/// <summary>
/// 拆分字符串并存储到列表中
/// 拆分字符串并过滤数据,取 `#` 前的部分
/// </summary>
/// <param name="input">ÊäÈë×Ö·û´®</param>
private void SplitData(string input)
{
// 按 `#` 分割,获取每组数据
string[] groups = input.Split('#');
foreach (string group in groups)
// 检查是否包含 `#`
if (input.Contains("#"))
{
// 按 `|` 分割每组数据
string[] items = group.Split('|');
// 取 `#` 前面的部分
input = input.Split('#')[0];
}
// 按 `|` 拆分数据
string[] items = input.Split('|');
// 将每个数据存入列表
foreach (string item in items)
{
// 按 `,` 分割每个具体数据
string[] subItems = item.Split(',');
// 将每个数据存入列表
NPCdian.AddRange(subItems); // 添加分割后的数据
string[] subItems = item.Split(','); // 按逗号分割
foreach (string subItem in subItems)
{
NPCdian.Add(subItem); // 存入拆分后的值
}
}
}
}
#endregion