This commit is contained in:
yulong 2024-04-02 11:16:43 +08:00
parent 5f8c1c2a9f
commit ef97d1ec5a
4 changed files with 10 additions and 2 deletions

View File

@ -20,6 +20,14 @@ public class Main_interface_Panel : XUIPanel
public override void Awake(GameObject go)
{
replay = this.transform.Find("UPBG/double_quotation_btn").GetComponent<Button>();
if (GameMain.visit == true)
{
replay.gameObject.SetActive(true);
}
else
{
replay.gameObject.SetActive(false);
}
train = this.transform.Find("UPBG/training_task_btn").GetComponent<Button>();
appQuet = this.transform.Find("UPBG/Power_Off_btn").GetComponent<Button>();
fanhui_btn = this.transform.Find("UPBG/Back_bton").GetComponent<Button>();

View File

@ -235,7 +235,7 @@ public class Microwaveweapon : MonoBehaviour
float distance = Vector3.Distance(transform.position, item.transform.position);
float angle = Vector3.Angle(transform.forward, item.transform.position - transform.position);
UnmannedAerialVehicleManage temp = item.GetComponent<UnmannedAerialVehicleManage>();
if (distance < float.Parse(Microwaveinterferencedistance) * 1000 && angle < float.Parse(MicrowaveinterferenceAngle))
if (distance < float.Parse(Microwaveinterferencedistance) * 1000 && angle < float.Parse(MicrowaveinterferenceAngle)/2f)
{
if (!wrjList.Contains(temp))
{

View File

@ -328,7 +328,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
Debug.Log("出现在摄像机视角里面了");
Vector3 cector = targetPoint.position - transform.position;
float angle = Vector3.Angle(cector, transform.forward);
if (float.Parse(InterferenceAngle) > angle)
if ((float.Parse(InterferenceAngle)/2f) > angle)
{
Debug.Log("角度合适进行打击");
var nowData = GetSyncData();