using System; using System.Collections; using UnityEngine; using UnityEngine.UIElements; public class VoiceController : MonoBehaviour { // Start is called once before the first execution of Update after the MonoBehaviour is created private VisualElement waveForm; private Button voiceBtn; private Coroutine waveCoroutine; void Start() { var root = GetComponent().rootVisualElement; var voiceArea = root.Q("voiceArea"); waveForm = voiceArea.Q("waveForm"); voiceBtn = voiceArea.Q