public override void PlaySound(string soundId) { if (this.parentLayer.TryGetTarget(out ALayer2D parentLayer)) { SoundBuffer soundBuffer = null; if (this.parentFactory != null) { soundBuffer = this.parentFactory.GetSoundById(soundId); } if (soundBuffer != null) { AObject2D.soundMusicPlayer.PlaySound(new SoundObject2D(parentLayer, this, soundBuffer)); } else { parentLayer.PlaySound(soundId, this); } } }