Exemplo n.º 1
0
 public void Play(AudibleNames.LCDInterface name, bool isLoop)
 {
     if (lcdInterfaceSFX == null)
     {
         if (GetComponentInChildren <LCDInterfaceSFX> () != null)
         {
             this.lcdInterfaceSFX = GetComponentInChildren <LCDInterfaceSFX> ();
             this.lcdInterfaceSFX.GetAudioSource(name).loop = isLoop;
             this.PlayOneShot(lcdInterfaceSFX.GetAudioSource(name));
         }
     }
     else
     {
         this.lcdInterfaceSFX.GetAudioSource(name).loop = isLoop;
         this.PlayOneShot(lcdInterfaceSFX.GetAudioSource(name));
     }
 }
Exemplo n.º 2
0
 public AudioSource GetAudioSource(AudibleNames.LCDInterface name)
 {
     this.audioSource.clip = this.audioPairs [name];
     return(this.audioSource);
 }