#region Copyright RenGuiYou. All rights reserved. //===================================================== // NeatlyFrameWork // Author: RenGuiyou // Feedback: mailto:750539605@qq.com //===================================================== #endregion using System.Collections.Generic; using UnityEngine; namespace Neatly.Load { public class SoundPool : IPoolBase { private readonly Dictionary m_AllSounds = new Dictionary(); public void Add(string name, AudioClip clip) { m_AllSounds.Add(name, clip); } public AudioClip Get(string key) { AudioClip result = null; m_AllSounds.TryGetValue(key, out result); return result; } public void Update() { } public void Remove(string key) { } } }