Beispiel #1
0
    public void StopAll(GameObject controllingObject)
    {
        List <RuntimeTuple> valueTupleList;

        GOAudioNodes.TryGetValue(controllingObject, out valueTupleList);
        if (valueTupleList != null)
        {
            for (int i = 0; i < valueTupleList.Count; ++i)
            {
                RuntimePlayer player = valueTupleList[i].Player;
                player.Stop();
                valueTupleList.SwapRemoveAt(i);
            }
        }
    }