public void PrepareAmbientSoundEffect(NodeAddedEvent evt, InitialHangarAmbientSoundNode hangar, NotHangarAmbientSoundListenerNode soundListener)
        {
            Entity entity = soundListener.Entity;

            entity.AddComponent(new HangarAmbientSoundControllerComponent(this.PrepareNewEffect(hangar, soundListener)));
            entity.AddComponent <HangarAmbientSoundSilenceComponent>();
        }
        private HangarAmbientSoundController PrepareNewEffect(InitialHangarAmbientSoundNode hangar, SoundListenerNode soundListener)
        {
            HangarAmbientSoundController controller2 = Object.Instantiate <HangarAmbientSoundController>(hangar.hangarAmbientSoundPrefab.HangarAmbientSoundController);
            Transform transform = controller2.transform;

            transform.parent        = soundListener.soundListener.transform;
            transform.localRotation = Quaternion.identity;
            transform.localPosition = Vector3.zero;
            return(controller2);
        }