1212
This commit is contained in:
parent
d208b87aad
commit
5a76ac15cb
|
@ -250,6 +250,8 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
if (wrjList.Count > 0)
|
if (wrjList.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (var item in wrjList)
|
foreach (var item in wrjList)
|
||||||
|
{
|
||||||
|
if (item != null)
|
||||||
{
|
{
|
||||||
item.limitHealth -= Time.deltaTime;
|
item.limitHealth -= Time.deltaTime;
|
||||||
if (item.limitHealth <= 0)
|
if (item.limitHealth <= 0)
|
||||||
|
@ -260,6 +262,11 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
Destroy(item.gameObject);
|
Destroy(item.gameObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wrjList.Remove(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -66,7 +66,8 @@ public class RadioAngleView : MonoBehaviour
|
||||||
{
|
{
|
||||||
Destroy(child.gameObject);
|
Destroy(child.gameObject);
|
||||||
}
|
}
|
||||||
|
if (uavm != null)
|
||||||
|
{
|
||||||
foreach (GameObject target in targets)
|
foreach (GameObject target in targets)
|
||||||
{
|
{
|
||||||
Vector3 relativePosition = target.transform.position - uavm.transform.position;
|
Vector3 relativePosition = target.transform.position - uavm.transform.position;
|
||||||
|
@ -76,6 +77,7 @@ public class RadioAngleView : MonoBehaviour
|
||||||
rt.anchoredPosition = radarPosition;
|
rt.anchoredPosition = radarPosition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取符合条件的设备
|
/// 获取符合条件的设备
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue