werer
This commit is contained in:
parent
795eb05dd8
commit
3c4dba9959
|
@ -28,6 +28,10 @@ public class DeviceBtnItem : MonoBehaviour
|
|||
id = _id;
|
||||
selfName = _selfName;
|
||||
selfText.text = _selfName;
|
||||
if (_selfName == "自杀式无人机" || _selfName.Contains("地面无线电干扰") || _selfName.Contains("微波武器"))
|
||||
{
|
||||
selfBtn.interactable = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -86,10 +86,10 @@ public class PostureController : MonoBehaviour
|
|||
{
|
||||
DeviceBtnItem obj = Instantiate(deviceBtnItem, contanier);
|
||||
obj.SetInfo(id, objName);
|
||||
|
||||
obj.selfBtn.onClick.AddListener(() =>
|
||||
{
|
||||
|
||||
if (obj.name.Contains("电子无人机"))
|
||||
if (objName.Contains("电子侦察无人机"))
|
||||
{
|
||||
redShowImage.transform.parent.GetComponent<Mask>().enabled = true;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ public class PostureController : MonoBehaviour
|
|||
redShowImage.transform.parent.GetComponent<Mask>().enabled = false;
|
||||
}
|
||||
|
||||
if (obj.name.Contains("频谱探测") || obj.name.Contains("雷达"))
|
||||
if (objName.Contains("频谱探测") || objName.Contains("雷达"))
|
||||
{
|
||||
|
||||
blueShowImage.transform.parent.GetComponent<Mask>().enabled = true;
|
||||
|
|
Loading…
Reference in New Issue