This commit is contained in:
parent
af1f1e48b3
commit
2d60b58a55
|
@ -191,6 +191,10 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
if (lasertime > 0)
|
||||
{
|
||||
lasertime -= Time.deltaTime;
|
||||
if (lasertime <= 0)
|
||||
{
|
||||
lasertime = 0;
|
||||
}
|
||||
}
|
||||
//if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0"&&Input.GetMouseButtonDown(0))
|
||||
//{
|
||||
|
@ -312,7 +316,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
case "干扰距离:":
|
||||
InterferenceDistance = weaponitemone[i].para_value;
|
||||
|
||||
Receivingdistance = float.Parse(InterferenceDistance) * 1000;
|
||||
Receivingdistance = float.Parse(InterferenceDistance) * 500;
|
||||
break;
|
||||
case "干扰角度:":
|
||||
InterferenceAngle = weaponitemone[i].para_value;
|
||||
|
@ -425,7 +429,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
/// </summary>
|
||||
public void Launchanattack()
|
||||
{
|
||||
if (targetPoint != null)
|
||||
if (targetPoint != null&& Receivingdistance>0)
|
||||
{
|
||||
Vector3 pos = camera.WorldToViewportPoint(targetPoint.position);
|
||||
ispcamera = (pos.x > 0 && pos.x < 1 && pos.y > 0 && pos.y < 1 && pos.z > 0);
|
||||
|
@ -556,7 +560,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
OuterLaserlineRenderer.SetPosition(0, LaserPoint.transform.position); // 设置线段起点为物体位置
|
||||
OuterLaserlineRenderer.SetPosition(1, LaserPoint.transform.position); // 设置线段终点为目标点
|
||||
}
|
||||
if (lasertimes!=0)
|
||||
if (lasertimes == 0)
|
||||
{
|
||||
lasertime = lasertimes;
|
||||
}
|
||||
|
|
|
@ -238,7 +238,7 @@ public class RadarManger : MonoBehaviour
|
|||
break;
|
||||
case "探测距离:":
|
||||
DetectionRange = weaponitemone[i].para_value;
|
||||
detectionRadius = float.Parse(DetectionRange) * 100;
|
||||
detectionRadius = float.Parse(DetectionRange) * 200;
|
||||
|
||||
break;
|
||||
case "近盲区:":
|
||||
|
|
Loading…
Reference in New Issue