public void Play(string sound_name)
    {
        AudioSource current_player = mSoundPlayers.Dequeue();

        mSoundServer.Play(current_player, sound_name, false);
        mSoundPlayers.Enqueue(current_player);
    }
Beispiel #2
0
 public void Play(string sound_name)
 {
     if (IsSameSound(sound_name))
     {
         return;
     }
     mSoundServer.Play(mSoundPlayer, sound_name, true);
 }