예제 #1
0
 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();
         }
     }
 }
예제 #2
0
 public SoundListenerResourcesComponent(SoundListenerResourcesBehaviour resources)
 {
     this.Resources = resources;
 }