修改摄像机
This commit is contained in:
parent
56d9c97e70
commit
122fbc2d5e
|
@ -238,7 +238,7 @@ public class RadarManger : MonoBehaviour
|
|||
case "探测距离:":
|
||||
DetectionRange = weaponitemone[i].para_value;
|
||||
detectionRadius = float.Parse(DetectionRange) * 100;
|
||||
Mincamera.orthographicSize = detectionRadius;
|
||||
|
||||
break;
|
||||
case "近盲区:":
|
||||
NearBlindArea = weaponitemone[i].para_value;
|
||||
|
@ -296,9 +296,10 @@ public class RadarManger : MonoBehaviour
|
|||
List<Collider> colliders = Physics.OverlapSphere(transform.position, detectionRadius).ToList(); // 检索范围内的所有碰撞体
|
||||
int number = 0;
|
||||
var colliders2 = colliders.FindAll(x => x.tag == "WRJ");
|
||||
Mincamera.orthographicSize = detectionRadius;
|
||||
if (colliders2.Count > 0)
|
||||
{
|
||||
//Mincamera.orthographicSize = detectionRadius;
|
||||
|
||||
for (int i = 0; i < colliders2.Count; i++)
|
||||
{
|
||||
if (i <= NumberOfProbes)
|
||||
|
|
Loading…
Reference in New Issue