Exemple #1
0
        public AFSound Add(string name, string path, Transform emitter = null, float volume = 1.0f, float pitch = 1.0f, bool loop = false, bool playOncePertime = true)
        {
            if (Exists(name))
            {
                AFDebug.LogWarning("Audio already registered: " + name);
                return(m_audios[name]);
            }

            return(Put(AFSound.Create(path, name, emitter, volume, pitch, loop, playOncePertime)));
        }
Exemple #2
0
 public AFSound Add(string name, string path, Transform emitter = null, float volume = 1.0f, float pitch = 1.0f, bool loop = false, bool playOncePertime = true)
 {
     return(Put(AFSound.Create(path, name, emitter, volume, pitch, loop, playOncePertime)));
 }