This commit is contained in:
林小智丶 2024-12-29 16:31:33 +08:00
parent d13685c99e
commit 31eb5af6d7
2 changed files with 6286 additions and 6279 deletions

View File

@ -90,7 +90,7 @@
"TakeTime": "3",
"TimeLimit": "-1",
"NextSelect": "-1",
"TaskLink": "2,11155",
"TaskLink": "3,11155",
"TaskLinkDetails": "-1",
"CallMode": "1",
"CallRecipient": "0",
@ -1880,7 +1880,7 @@
"ShowText": "10806",
"Icon": "Icon_10001",
"Precondition": "3,10060|2,11147|9,2#3,10060|2,11147|9,3#3,10060|2,11147|9,4#3,10060|2,11147|9,5#1,30",
"Exclusive": "-1",
"Exclusive": "10807|10808|10809",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -1906,7 +1906,7 @@
"ShowText": "10806",
"Icon": "Icon_10001",
"Precondition": "3,10060|2,11147|9,2#3,10060|2,11147|9,3#3,10060|2,11147|9,4#3,10060|2,11147|9,5#1,30",
"Exclusive": "-1",
"Exclusive": "10806|10808|10809",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -1932,7 +1932,7 @@
"ShowText": "10806",
"Icon": "Icon_10001",
"Precondition": "3,10060|2,11147|9,2#3,10060|2,11147|9,3#3,10060|2,11147|9,4#3,10060|2,11147|9,5#1,30",
"Exclusive": "-1",
"Exclusive": "10806|10807|10809",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -1958,7 +1958,7 @@
"ShowText": "10806",
"Icon": "Icon_10001",
"Precondition": "3,10060|2,11147|9,2#3,10060|2,11147|9,3#3,10060|2,11147|9,4#3,10060|2,11147|9,5#1,30",
"Exclusive": "-1",
"Exclusive": "10806|10807|10808",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -1979,12 +1979,12 @@
"ID": "10810",
"Note": "选择无法用于疏散的楼道-1号(困难)",
"PlayScript": "5001,6,6",
"Group": "12,1",
"Group": "12,-1",
"UnDisplay": "1",
"ShowText": "10810",
"Icon": "Icon_10001",
"Precondition": "4,10806#4,10807#4,10808#4,10809",
"Exclusive": "-1",
"Exclusive": "10811|10812",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -2005,12 +2005,12 @@
"ID": "10811",
"Note": "选择无法用于疏散的楼道-2号(困难)",
"PlayScript": "5001,6,6",
"Group": "12,2",
"Group": "12,-1",
"UnDisplay": "1",
"ShowText": "10810",
"Icon": "Icon_10001",
"Precondition": "4,10806#4,10807#4,10808#4,10809",
"Exclusive": "-1",
"Exclusive": "10810|10812",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -2031,12 +2031,12 @@
"ID": "10812",
"Note": "选择无法用于疏散的楼道-3号(困难)",
"PlayScript": "5001,6,6",
"Group": "12,3",
"Group": "12,-1",
"UnDisplay": "1",
"ShowText": "10810",
"Icon": "Icon_10001",
"Precondition": "4,10806#4,10807#4,10808#4,10809",
"Exclusive": "-1",
"Exclusive": "10810|10811",
"TakeTime": "-1",
"TimeLimit": "-1",
"NextSelect": "-1",
@ -3376,7 +3376,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3402,7 +3402,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3428,7 +3428,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3454,7 +3454,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3480,7 +3480,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3506,7 +3506,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3532,7 +3532,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3558,7 +3558,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3584,7 +3584,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3610,7 +3610,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3636,7 +3636,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3662,7 +3662,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3688,7 +3688,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3714,7 +3714,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3740,7 +3740,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3766,7 +3766,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3792,7 +3792,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3818,7 +3818,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3844,7 +3844,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3870,7 +3870,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3896,7 +3896,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3922,7 +3922,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3948,7 +3948,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -3974,7 +3974,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -4000,7 +4000,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -4026,7 +4026,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -4052,7 +4052,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -4078,7 +4078,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -4104,7 +4104,7 @@
"Route": "-1",
"TimingChange": "-1",
"AppliedUI": "QingDian",
"UIDetails": "-1",
"UIDetails": "20001",
"Seq": "-1"
},
{
@ -4855,7 +4855,7 @@
"CorrectOption": "-1",
"Reward": "6001,1,12,-5",
"Result": "37",
"Route": "-21.36,3.5,-50.11|-22.463.5-48.11|-20.13.5-48.11|-20.13.5-51.79|-22.463.5-51.81#-21.36,0.21,-50.1|-22.46,0.21,-48.11|-20.1,0.21,-48.11|-20.1,0.21,-52.48|-22.46,0.21,-52.48",
"Route": "-21.36,3.5,-50.11|-22.46,3.5-48.11|-20.13.5-48.11|-20.13.5-51.79|-22.46,3.5-51.81#-21.36,0.21,-50.1|-22.46,0.21,-48.11|-20.1,0.21,-48.11|-20.1,0.21,-52.48|-22.46,0.21,-52.48",
"TimingChange": "-1",
"AppliedUI": "tanchuang1",
"UIDetails": "20000",

View File

@ -345,7 +345,7 @@ public class ZZUIManager : MonoBehaviour
public bool isluxian = false;
public static int louhao;//ÅжϼǺÅÂ¥
public string TempNPC;
public List<string> NPCdian;
public List<Vector3> NPCdian;
public int ID = 0;
public void Awake()
{
@ -1314,31 +1314,38 @@ public class ZZUIManager : MonoBehaviour
}
/// <summary>
/// 拆分字符串并过滤数据,取 `#` 前的部分
/// 解析字符串并将 Vector3 数据存入列表
/// </summary>
/// <param name="input">输入字符串</param>
/// <param name="input">输入字符串</param>
private void SplitData(string input)
{
// 检查是否包含 `#`
// 取 `#` 前的数据
if (input.Contains("#"))
{
// 取 `#` 前面的部分
input = input.Split('#')[0];
}
// 按 `|` 分数据
string[] items = input.Split('|');
// 按 `|` 数据
string[] segments = input.Split('|');
// 将每个数据存入列表
foreach (string item in items)
foreach (string segment in segments)
{
string[] subItems = item.Split(','); // 按逗号分割
foreach (string subItem in subItems)
// 按 `,` 分割每段数据
string[] components = segment.Split(',');
if (components.Length == 3 &&
float.TryParse(components[0], out float x) &&
float.TryParse(components[1], out float y) &&
float.TryParse(components[2], out float z))
{
NPCdian.Add(subItem); // 存入拆分后的值
// 将解析的 Vector3 数据存入列表
NPCdian.Add(new Vector3(x, y, z));
}
else
{
Debug.LogWarning($"无法解析为 Vector3 的数据段:{segment}");
}
}
}
#endregion