This commit is contained in:
parent
b266249130
commit
b679f840b2
|
@ -131,7 +131,7 @@ public class Spectrumdetection : MonoBehaviour
|
|||
{
|
||||
if (ison)
|
||||
{
|
||||
Frequency = "HUF";
|
||||
Frequency = "UHF";
|
||||
camera.cullingMask = 1 << 16;
|
||||
SweepFrequencyBandTo();
|
||||
}
|
||||
|
@ -366,7 +366,8 @@ public class Spectrumdetection : MonoBehaviour
|
|||
/// </summary>
|
||||
private void Search()
|
||||
{
|
||||
Collider[] colliders = Physics.OverlapSphere(transform.position, float.Parse(Detectionrange) * 100);
|
||||
attackColliders1.Clear();
|
||||
colliders = Physics.OverlapSphere(transform.position, float.Parse(Detectionrange) * 100);
|
||||
for (int i = 0; i < colliders.Length; i++)
|
||||
{
|
||||
if (colliders[i].transform.gameObject.tag == "WRJ")
|
||||
|
|
Loading…
Reference in New Issue