提交一下下下把

This commit is contained in:
林小智丶 2024-12-29 10:43:52 +08:00
parent 4cd2b4e776
commit 71f8fea176
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; hidePositionX = 337f;
showPositionX = 1.159973f; showPositionX = 1.159973f;
panelAMoveDistance = 382f; panelAMoveDistance = 382f;
if(ReadRoom.instance.iszongzhihui)
{
Commend1.SetActive(true);
}
#region 11
#region
//偷懒 拉一坨给HYL geigei
Icn_Stairway_1.onClick.AddListener(() => Icn_Stairway_1.onClick.AddListener(() =>
{ {
louhao = 2; louhao = 2;
@ -1307,30 +1313,32 @@ public class ZZUIManager : MonoBehaviour
} }
} }
/// <summary> /// <summary>
/// 拆分字符串并存储到列表中 /// 拆分字符串并过滤数据,取 `#` 前的部分
/// </summary> /// </summary>
/// <param name="input">输入字符串</param> /// <param name="input">输入字符串</param>
private void SplitData(string input) private void SplitData(string input)
{ {
// 按 `#` 分割,获取每组数据 // 检查是否包含 `#`
string[] groups = input.Split('#'); if (input.Contains("#"))
foreach (string group in groups)
{ {
// 按 `|` 分割每组数据 // 取 `#` 前面的部分
string[] items = group.Split('|'); input = input.Split('#')[0];
}
foreach (string item in items) // 按 `|` 拆分数据
{ string[] items = input.Split('|');
// 按 `,` 分割每个具体数据
string[] subItems = item.Split(',');
// 将每个数据存入列表 // 将每个数据存入列表
NPCdian.AddRange(subItems); // 添加分割后的数据 foreach (string item in items)
{
string[] subItems = item.Split(','); // 按逗号分割
foreach (string subItem in subItems)
{
NPCdian.Add(subItem); // 存入拆分后的值
} }
} }
} }
#endregion #endregion