Merge branch 'main' of http://shu.sheziwanglo.cn:3000/wulongxiao/_xiaofang
This commit is contained in:
commit
7efde543f1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user