void Awake() { mSoundServer.Create(KMGlobalDef.ResPath_Sound); mSoundLayers.Add(_eSoundLayer.Background, new SoundLayerBackground(mSoundServer)); mSoundLayers.Add(_eSoundLayer.Effect, new SoundLayerEffect(mSoundServer, 5)); mSoundLayers.Add(_eSoundLayer.EffectUI, new SoundLayerUI(mSoundServer, 3)); }
public void Create() { mSoundServer.Create("sound"); mSoundLayers.Add(ESoundLayer.Background, new SoundLayerBackground(mSoundServer)); mSoundLayers.Add(ESoundLayer.Effect, new SoundLayerEffect(mSoundServer, 5)); mSoundLayers.Add(ESoundLayer.EffectUI, new SoundLayerUI(mSoundServer, 3)); }