This commit is contained in:
parent
0075e99e16
commit
8341539b4c
|
@ -267,6 +267,8 @@ public class Device_MeasuringCabinet : MonoBehaviour
|
|||
AddActions();
|
||||
//刷新带电状态
|
||||
CheckHasElectricity();
|
||||
//打分
|
||||
ScoreManager.instance.Check(dianCollider.gameObject.name, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -276,6 +278,8 @@ public class Device_MeasuringCabinet : MonoBehaviour
|
|||
//情况接线关联螺丝
|
||||
ClearLineScrew();
|
||||
sundries.gameObject.SetActive(true);
|
||||
//打分
|
||||
ScoreManager.instance.Check(dianCollider.gameObject.name, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,8 +25,8 @@ public class Score_1002 : ScoreBase
|
|||
tmps.Add(new ScoreSubjectStep(3009, 3));
|
||||
tmps.Add(new ScoreSubjectStep(3010,4));
|
||||
tmps.Add(new ScoreSubjectStep(3011, 3));
|
||||
tmps.Add(new ScoreSubjectStep(3012, 20));
|
||||
tmps.Add(new ScoreSubjectStep(3013, 20));
|
||||
tmps.Add(new ScoreSubjectStep(3012, 20,true));
|
||||
tmps.Add(new ScoreSubjectStep(3013, 20,true));
|
||||
tmps.Add(new ScoreSubjectStep(3014, 5));
|
||||
tmps.Add(new ScoreSubjectStep(3015, 5));
|
||||
tmps.Add(new ScoreSubjectStep(3016, 3));
|
||||
|
@ -386,7 +386,7 @@ public class Score_1002 : ScoreBase
|
|||
if(!currentInstallJieXian.Contains("电能表拆装螺丝1") || !currentInstallJieXian.Contains("电能表拆装螺丝2"))
|
||||
return false;
|
||||
|
||||
if (currentInstallJieXian.Count < currentInstallJieXian.Count+2)
|
||||
if (currentInstallJieXian.Count < installJieXian.Count+2)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -415,7 +415,7 @@ public class Score_1002 : ScoreBase
|
|||
if (SiteManager.instance.measuringCabinet.inSwitch.isOpen && installCover.Contains("电能表盖子固定螺丝1") && installCover.Contains("电能表盖子固定螺丝2"))
|
||||
{
|
||||
//无验电顺序
|
||||
if(installTestJieXian.TrueForAll(a => currentInstallTestJieXian.Contains(a.Replace("up","").Replace("down",""))))
|
||||
if(installTestJieXian.TrueForAll(a => currentInstallTestJieXian.Any(b=>b.Replace("up","").Replace("down","")==a)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue