Exemplo n.º 1
0
 // 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";
 }
Exemplo n.º 2
0
 public virtual void SetInfo(CurAudioInfo info)
 {
     curAudioInfo = info;
 }
Exemplo n.º 3
0
 public override void SetInfo(CurAudioInfo info)
 {
     base.SetInfo(info);
     OnUpdateInfo();
 }