diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs index a8e61d15..226cf8e0 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs @@ -826,38 +826,38 @@ public class UnmannedAerialVehicleManage : MonoBehaviour /// /// 雷达检测无人机身上得RSC /// - public void CheckRSC() - { - if (string.IsNullOrEmpty(RCS)) - { - float rcs = float.Parse(RCS); - if (rcs <= 0.5 && rcs >= 0.1) - { - StartCoroutine(ShowRadarTips(0.8f, 2)); - } - else if (rcs >= 0.5f && rcs <= 1) - { - StartCoroutine(ShowRadarTips(0.4f, 1)); - } - } - } + //public void CheckRSC() + //{ + // if (string.IsNullOrEmpty(RCS)) + // { + // float rcs = float.Parse(RCS); + // if (rcs <= 0.5 && rcs >= 0.1) + // { + // StartCoroutine(ShowRadarTips(0.8f, 2)); + // } + // else if (rcs >= 0.5f && rcs <= 1) + // { + // StartCoroutine(ShowRadarTips(0.4f, 1)); + // } + // } + //} /// /// 多少时间在对方雷达界面上显示红色标记 /// /// /// /// - private IEnumerator ShowRadarTips(float minTime, float maxTime) - { - GameObject tips = transform.Find("Minimapwrj").gameObject; - while (true) - { - tips.gameObject.SetActive(false); - float time = UnityEngine.Random.Range(minTime, maxTime); - yield return new WaitForSeconds(time); - tips.gameObject.SetActive(true); - } - } + //private IEnumerator ShowRadarTips(float minTime, float maxTime) + //{ + // GameObject tips = transform.Find("Minimapwrj").gameObject; + // while (true) + // { + // tips.gameObject.SetActive(false); + // float time = UnityEngine.Random.Range(minTime, maxTime); + // yield return new WaitForSeconds(time); + // tips.gameObject.SetActive(true); + // } + //} public LayerMask layerMask = new LayerMask(); /// @@ -1230,7 +1230,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour unmannedAerialVehicleManages.RemoveAt(i); } } - StopCoroutine(ShowRadarTips(0, 0)); + //StopCoroutine(ShowRadarTips(0, 0)); OnActivationChanged -= OnActivationChangedHandler; }