Beispiel #1
0
    public void Stop(string name)
    {
        SoundT1 s = Array.Find(sounds, sound => sound.name == name);

        s.source.Stop();
    }
Beispiel #2
0
    public void Play(string name)
    {
        SoundT1 s = Array.Find(sounds, sound => sound.name == name);

        s.source.Play();
    }