// Use this for initialization void Awake() { samplers = new float[SamplerCount]; audioSource = GetComponent <AudioSource>(); info = new CurAudioInfo(); info.SpectrumDatas = samplers; info.CurrentSec = 0f; info.TotalSec = audioSource.clip.length; info.AudioName = "wahaha"; info.AuthorName = "wahaha"; }
public virtual void SetInfo(CurAudioInfo info) { curAudioInfo = info; }
public override void SetInfo(CurAudioInfo info) { base.SetInfo(info); OnUpdateInfo(); }