dsd
This commit is contained in:
parent
ac20a2451b
commit
795eb05dd8
|
@ -15,7 +15,7 @@ public class PostureController : MonoBehaviour
|
|||
public RawImage redShowImage;
|
||||
public RawImage blueShowImage;
|
||||
private DroneViewDisplay droneViewDisplay;
|
||||
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Awake()
|
||||
{
|
||||
|
@ -88,15 +88,25 @@ public class PostureController : MonoBehaviour
|
|||
obj.SetInfo(id, objName);
|
||||
obj.selfBtn.onClick.AddListener(() =>
|
||||
{
|
||||
if (obj.name.Contains("电子无人机") || obj.name.Contains("频谱探测") || obj.name.Contains("雷达"))
|
||||
|
||||
if (obj.name.Contains("电子无人机"))
|
||||
{
|
||||
redShowImage.transform.parent.GetComponent<Mask>().enabled = true;
|
||||
blueShowImage.transform.parent.GetComponent<Mask>().enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
redShowImage.transform.parent.GetComponent<Mask>().enabled = false;
|
||||
}
|
||||
|
||||
if (obj.name.Contains("频谱探测") || obj.name.Contains("雷达"))
|
||||
{
|
||||
|
||||
blueShowImage.transform.parent.GetComponent<Mask>().enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
blueShowImage.transform.parent.GetComponent<Mask>().enabled = false;
|
||||
|
||||
}
|
||||
OnDeviceBtn(id, redOrBlue);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue