Compare commits
No commits in common. "e7fc35f2b798563323b9e8180799a2ce130e1617" and "d19e6c9e41cc3cc668e4d0a2d34aac321d19cdb0" have entirely different histories.
e7fc35f2b7
...
d19e6c9e41
@ -260,6 +260,7 @@ public class JSONReader : MonoBehaviour
|
|||||||
return null; // 如果没有找到符合条件的语言数据,返回 null
|
return null; // 如果没有找到符合条件的语言数据,返回 null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//获取任务
|
//获取任务
|
||||||
public Task_ GetTaskByID(int id)
|
public Task_ GetTaskByID(int id)
|
||||||
{
|
{
|
||||||
|
@ -311,12 +311,7 @@ public class Panel : MonoBehaviour
|
|||||||
// 按“|”分隔不同的角色限制部分
|
// 按“|”分隔不同的角色限制部分
|
||||||
string[] roleLimitSections = npcData.Value.RoleLimit.Split('|');
|
string[] roleLimitSections = npcData.Value.RoleLimit.Split('|');
|
||||||
bool shouldInstantiate = true;
|
bool shouldInstantiate = true;
|
||||||
if(npcData.Value.RoleLimit=="-1")
|
// 遍历每个角色限制部分
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
foreach (var section in roleLimitSections)
|
foreach (var section in roleLimitSections)
|
||||||
{
|
{
|
||||||
// 按“,”分隔出事故位置ID、职业ID和最低要求人数
|
// 按“,”分隔出事故位置ID、职业ID和最低要求人数
|
||||||
@ -362,9 +357,6 @@ public class Panel : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 遍历每个角色限制部分
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -273,38 +273,6 @@ public class EvacuationPanel : MonoBehaviour
|
|||||||
return nonZeroAreas;
|
return nonZeroAreas;
|
||||||
}
|
}
|
||||||
|
|
||||||
//设置左侧场景显示2.0
|
|
||||||
public void SetScene()
|
|
||||||
{
|
|
||||||
// 清空现有的UI项
|
|
||||||
foreach (Transform child in personnelContent)
|
|
||||||
{
|
|
||||||
Destroy(child.gameObject);
|
|
||||||
}
|
|
||||||
// 清空人员列表
|
|
||||||
personnelItems.Clear();
|
|
||||||
foreach (var item in js.locationDictionary)
|
|
||||||
{
|
|
||||||
if(item.Value.NpcRatio=="-1")
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
string[] npcratio = item.Value.NpcRatio.Split('|');
|
|
||||||
foreach(var npcLimit in npcratio)
|
|
||||||
{
|
|
||||||
string[] limit = npcLimit.Split(',');
|
|
||||||
if (limit[0] == selectScene.scnenId.ToString()&& limit[1] == selectScene.difficultyId.ToString())
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//ÉèÖÃ×ó²à³¡¾°ÏÔʾ
|
//ÉèÖÃ×ó²à³¡¾°ÏÔʾ
|
||||||
public void SetPersonnel()
|
public void SetPersonnel()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user