From 9c9e671c89da01e486918d9b185291964c7a366b Mon Sep 17 00:00:00 2001 From: YangHua <1475658476@qq.com> Date: Mon, 25 Mar 2024 17:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ModelFunction/UAV/UnmannedAerialVehicle.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs index cd98d27b..753f36ff 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicle.cs @@ -258,14 +258,14 @@ public class UnmannedAerialVehicle : MonoBehaviour Vector3 _v3 = attackTarget.position; transform.DOLookAt(_v3, 0.1f).OnComplete(() => { - if (wrjModel == WRJModel.光学无人机) - { - Debug.Log("光学无人机攻击"); - StopCoroutine(RangedAttack()); - StartCoroutine(RangedAttack()); - } - else - { + //if (wrjModel == WRJModel.光学无人机) + //{ + // Debug.Log("光学无人机攻击"); + // StopCoroutine(RangedAttack()); + // StartCoroutine(RangedAttack()); + //} + //else + //{ string nowData = GetSyncData(attackTarget); Debug.Log(nowData); MyNetMQClient.instance.Send(nowData); @@ -280,7 +280,7 @@ public class UnmannedAerialVehicle : MonoBehaviour // //BeAssaulted("没有攻击到目标"); //} }); - } + //} }); } }