From b45be22bd4e3ed97980c28885233cab8b6805ce2 Mon Sep 17 00:00:00 2001 From: yulong <1838206582@qq.com> Date: Thu, 7 Mar 2024 10:27:18 +0800 Subject: [PATCH] 1 --- Assets/Zion/Scripts/HighPriorityTarget.cs | 44 +++++++++++------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Assets/Zion/Scripts/HighPriorityTarget.cs b/Assets/Zion/Scripts/HighPriorityTarget.cs index ae20b3be..22e3896f 100644 --- a/Assets/Zion/Scripts/HighPriorityTarget.cs +++ b/Assets/Zion/Scripts/HighPriorityTarget.cs @@ -75,7 +75,7 @@ public class HighPriorityTarget : MonoBehaviour public GameObject gamepos; void Start() { - gamepos.gameObject.SetActive(false); + //gamepos.gameObject.SetActive(false); HighPriorityTargets.Add(this); Number = HighPriorityTargets.Count.ToString(); buttonreg.onClick.AddListener(() => @@ -143,28 +143,28 @@ public class HighPriorityTarget : MonoBehaviour } } } - if (Spectrumdetection.Radius > 0) - { - if (gamepos) - { - gamepos.gameObject.SetActive(true); - switch (Spectrumdetection.Radius) - { - case 1: - gamepos.transform.localScale = new Vector3(10, 1, 10); - break; - case 2: - gamepos.transform.localScale = new Vector3(20, 1, 20); - break; - case 3: - gamepos.transform.localScale = new Vector3(30, 1, 30); - break; - default: - break; - } - } + //if (Spectrumdetection.Radius > 0) + //{ + // if (gamepos) + // { + // gamepos.gameObject.SetActive(true); + // switch (Spectrumdetection.Radius) + // { + // case 1: + // gamepos.transform.localScale = new Vector3(10, 1, 10); + // break; + // case 2: + // gamepos.transform.localScale = new Vector3(20, 1, 20); + // break; + // case 3: + // gamepos.transform.localScale = new Vector3(30, 1, 30); + // break; + // default: + // break; + // } + // } - } + //} } ///