using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Conversionfrequency : MonoBehaviour
{
public static Conversionfrequency Instance;
public TerrestrialRadioInterferenceManger terrestrialRadioInterferenceManger;
public Dropdown dropdown;
///
/// 改变频率的传值
///
public int Smallfrequency;
///
/// 取消频率设置按钮
///
public Button offon_buttn;
///
/// 确认频率按钮
///
public Button verify_buttn;
///
/// 调整场景内无线电干扰的频率
///
public string disturb;
private void Awake()
{
Instance = this;
}
void Start()
{
transform.gameObject.SetActive(false);
Controlpage();
}
private void Controlpage()
{
offon_buttn.onClick.AddListener(() =>
{
transform.gameObject.SetActive(false);
});
verify_buttn.onClick.AddListener(() =>
{
Smallfrequency = dropdown.value;
terrestrialRadioInterferenceManger.Interference(Smallfrequency);
transform.gameObject.SetActive(false);
});
}
void Update()
{
}
private void OnDestroy()
{
transform.gameObject.SetActive(false);
}
}