private void Update() { if (this.startedLoading) { LoadedSoundNode node = EngineService.Engine.SelectAll <LoadedSoundNode>().FirstOrDefault <LoadedSoundNode>(); if (node != null) { SoundListenerResourcesBehaviour component = ((GameObject)node.resourceData.Data).GetComponent <SoundListenerResourcesBehaviour>(); node.Entity.AddComponent(new SoundListenerResourcesComponent(component)); base.enabled = false; base.Complete(); } } }
public SoundListenerResourcesComponent(SoundListenerResourcesBehaviour resources) { this.Resources = resources; }