This commit is contained in:
parent
b16b36ba44
commit
24f0ab95d0
|
@ -237,7 +237,7 @@ public class RadarManger : MonoBehaviour
|
||||||
case "探测距离:":
|
case "探测距离:":
|
||||||
DetectionRange = weaponitemone[i].para_value;
|
DetectionRange = weaponitemone[i].para_value;
|
||||||
detectionRadius = float.Parse(DetectionRange) * 100;
|
detectionRadius = float.Parse(DetectionRange) * 100;
|
||||||
Mincamera.orthographicSize = detectionRadius;
|
//Mincamera.orthographicSize = detectionRadius;
|
||||||
break;
|
break;
|
||||||
case "近盲区:":
|
case "近盲区:":
|
||||||
NearBlindArea = weaponitemone[i].para_value;
|
NearBlindArea = weaponitemone[i].para_value;
|
||||||
|
@ -297,6 +297,7 @@ public class RadarManger : MonoBehaviour
|
||||||
var colliders2 = colliders.FindAll(x => x.tag == "WRJ");
|
var colliders2 = colliders.FindAll(x => x.tag == "WRJ");
|
||||||
if (colliders2.Count > 0)
|
if (colliders2.Count > 0)
|
||||||
{
|
{
|
||||||
|
Mincamera.orthographicSize = detectionRadius;
|
||||||
for (int i = 0; i < colliders2.Count; i++)
|
for (int i = 0; i < colliders2.Count; i++)
|
||||||
{
|
{
|
||||||
if (i <= NumberOfProbes)
|
if (i <= NumberOfProbes)
|
||||||
|
|
Loading…
Reference in New Issue