概率命中
This commit is contained in:
parent
bbe0b64adc
commit
5f41effd6e
|
@ -294,8 +294,8 @@ public class RadarManger : MonoBehaviour
|
|||
Mincamera.orthographicSize = detectionRadius;
|
||||
if (colliders2.Count > 0)
|
||||
{
|
||||
//if (Random.value > (1 - float.Parse(DetectionSuccessRate)/100))
|
||||
//{
|
||||
if (Random.value > (1 - float.Parse(DetectionSuccessRate) / 100))
|
||||
{
|
||||
for (int i = 0; i < colliders2.Count; i++)
|
||||
{
|
||||
UnmannedAerialVehicle unmannedAerialVehicle = colliders2[i].GetComponent<UnmannedAerialVehicle>();
|
||||
|
@ -315,7 +315,7 @@ public class RadarManger : MonoBehaviour
|
|||
}
|
||||
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue