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)
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
||||||
/// <summary>
|
/// <summary>
|
||||||
private void Detection()
|
private void Detection()
|
||||||
{
|
{
|
||||||
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0"&&Input.GetMouseButtonDown(0))
|
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0" && Input.GetMouseButtonDown(0))
|
||||||
{
|
{
|
||||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||||
RaycastHit hit;
|
RaycastHit hit;
|
||||||
|
@ -139,7 +139,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (hit.transform.tag == "AttackTarget"&&hit.transform.gameObject.name== "地面无线电干扰(Clone)")
|
if (hit.transform.tag == "AttackTarget" && hit.transform.gameObject.name == "地面无线电干扰(Clone)")
|
||||||
{
|
{
|
||||||
Conversionfrequency.Instance.terrestrialRadioInterferenceManger = hit.transform.GetComponent<TerrestrialRadioInterferenceManger>();
|
Conversionfrequency.Instance.terrestrialRadioInterferenceManger = hit.transform.GetComponent<TerrestrialRadioInterferenceManger>();
|
||||||
Conversionfrequency.Instance.transform.position = Camera.main.WorldToScreenPoint(hit.point);
|
Conversionfrequency.Instance.transform.position = Camera.main.WorldToScreenPoint(hit.point);
|
||||||
|
|
Loading…
Reference in New Issue