Exemplo n.º 1
0
    void Update_WaitPlaySound3D()
    {
        if (waitPlaySoundData3Ds.Count == 0)
        {
            return;
        }
        AudioSource source = GetFreeSource3D();

        if (source != null)
        {
            PlaySoundData psd = waitPlaySoundData3Ds [0];
            psd.Play(source);
            waitPlaySoundData3Ds.RemoveAt(0);
            PlaySoundData.Instance().pools.Free(psd);
        }
    }