306 309
This commit is contained in:
parent
f7e31ce295
commit
faed9211e1
|
@ -80,6 +80,8 @@ public class Device_Control_9001 : Device_Control
|
||||||
ewmh.SetActive(true);
|
ewmh.SetActive(true);
|
||||||
ewmOK = false;
|
ewmOK = false;
|
||||||
isSMOK = false;
|
isSMOK = false;
|
||||||
|
if (ewmh.GetComponent<Tool_Title>() != null)
|
||||||
|
ewmh.GetComponent<Tool_Title>().isInstall = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
|
@ -89,6 +91,8 @@ public class Device_Control_9001 : Device_Control
|
||||||
ewmh.SetActive(true);
|
ewmh.SetActive(true);
|
||||||
ewmOK = false;
|
ewmOK = false;
|
||||||
isSMOK = false;
|
isSMOK = false;
|
||||||
|
if (ewmh.GetComponent<Tool_Title>() != null)
|
||||||
|
ewmh.GetComponent<Tool_Title>().isInstall = true;
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
||||||
|
|
|
@ -67,21 +67,22 @@ public class StepState_9001 : StepState
|
||||||
Score_9001.cdzIndex = 0;
|
Score_9001.cdzIndex = 0;
|
||||||
|
|
||||||
//清空背包数据
|
//清空背包数据
|
||||||
PacksackBagMgr.Instance.ClearAllData();
|
//PacksackBagMgr.Instance.ClearAllData();
|
||||||
//生成服装
|
//生成服装
|
||||||
List<ItemInfo> items = ToolAndmaterialMgr.Instance.CreateItemInfoByName(new List<string> { "国网安全帽", "工作服", "绝缘手套", "绝缘靴" });
|
/*List<ItemInfo> items = ToolAndmaterialMgr.Instance.CreateItemInfoByName(new List<string> { "벌貢갛홍챰", "묏鱗륩", "없鍍癎敬", "없鍍棄" });
|
||||||
//放入背包
|
//放入背包
|
||||||
items.ForEach(item =>
|
items.ForEach(item =>
|
||||||
{
|
{
|
||||||
PacksackBagMgr.Instance.AddOneToolOrMater(item);
|
PacksackBagMgr.Instance.AddOneToolOrMater(item);
|
||||||
//穿上
|
//穿上
|
||||||
PacksackBagMgr.Instance.WearItemState(item, true);
|
PacksackBagMgr.Instance.WearItemState(item, true);
|
||||||
});
|
});*/
|
||||||
//生成工具
|
//生成工具
|
||||||
List<ItemInfo> items2 = ToolAndmaterialMgr.Instance.CreateItemInfoByName(new List<string> { "剥线钳", "绝缘铲", "验电笔", "国网安全帽", "工作服", "绝缘手套", "绝缘靴", "工作证", "盒装封印", "绝缘胶带", "三相四线费控智能电能表", "盒装计量箱电子标签" });
|
List<Tool_SelectComponent> items2 = ToolAndmaterialMgr.Instance.GetItemInfoByName(new List<string> { "괆窟풂", "없鍍끎", "駱든궝", "묏鱗聯", "분陋룐丹", "없鍍스던", "힛宮愷窟롤왠例콘든콘깊", "분陋셕좆芎든綾깃푯" });
|
||||||
items2.ForEach(item =>
|
items2.ForEach(item =>
|
||||||
{
|
{
|
||||||
PacksackBagMgr.Instance.AddOneToolOrMater(item);
|
PacksackBagMgr.Instance.AddOneToolOrMater(item.itemInfo);
|
||||||
|
Destroy(item.gameObject);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (num == 4)//验电
|
else if (num == 4)//验电
|
||||||
|
|
Loading…
Reference in New Issue