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;
|
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];
|
||||||
|
}
|
||||||
|
|
||||||
|
// 按 `|` 拆分数据
|
||||||
|
string[] items = input.Split('|');
|
||||||
|
|
||||||
|
// 将每个数据存入列表
|
||||||
foreach (string item in items)
|
foreach (string item in items)
|
||||||
{
|
{
|
||||||
// 按 `,` 分割每个具体数据
|
string[] subItems = item.Split(','); // 按逗号分割
|
||||||
string[] subItems = item.Split(',');
|
foreach (string subItem in subItems)
|
||||||
|
{
|
||||||
// 将每个数据存入列表
|
NPCdian.Add(subItem); // 存入拆分后的值
|
||||||
NPCdian.AddRange(subItems); // 添加分割后的数据
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user