Exemplo n.º 1
0
 public void PlayerSound(BosssoundPack sound)
 {
     if (!audio.isPlaying)
     {
         audio.clip = sounds[(int)sound];
         audio.Play();
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     sound = BosssoundPack.Appearance;
     audio = GetComponent <AudioSource>();
 }