Beispiel #1
0
    public void Play()
    {
        var s = AudioSourcePool.GetSource();

        Play(s, false);
        AudioSourcePool.ReturnSourceWhenDone(s);
    }
Beispiel #2
0
    public void Play2D(float pan = 0)
    {
        var s = AudioSourcePool.GetSource();

        s.spatialBlend = 0;
        Play(s, false, pan);
        AudioSourcePool.ReturnSourceWhenDone(s);
    }