概率命中

This commit is contained in:
yulong 2024-01-08 17:04:01 +08:00
parent bbe0b64adc
commit 5f41effd6e
1 changed files with 17 additions and 17 deletions

View File

@ -294,8 +294,8 @@ public class RadarManger : MonoBehaviour
Mincamera.orthographicSize = detectionRadius; Mincamera.orthographicSize = detectionRadius;
if (colliders2.Count > 0) 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++) for (int i = 0; i < colliders2.Count; i++)
{ {
UnmannedAerialVehicle unmannedAerialVehicle = colliders2[i].GetComponent<UnmannedAerialVehicle>(); UnmannedAerialVehicle unmannedAerialVehicle = colliders2[i].GetComponent<UnmannedAerialVehicle>();
@ -315,7 +315,7 @@ public class RadarManger : MonoBehaviour
} }
//} }
} }
} }