Exemplo n.º 1
0
 void Awake()
 {
     layoutManager = new LayoutManager();
     layoutManager.layoutManagerDelegate = this;
     layoutManager.LoadSoundFiles(() => { });
     layoutManager.LoadCurrentLoudout();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Update the scene data and place the corresponding sources
 /// </summary>
 public void LoadData()
 {
     // remove the previous
     UnloadCurrentSoundMarkers();
     // set up all the hotspots
     layoutManager.LoadCurrentLoudout();
     // Bind all the sounds to their game objects
     foreach (Hotspot h in layoutManager.layout.hotspots)
     {
         var pf = SoundMarker.CreatePrefab(
             anchorWrapperTransform.TransformPoint(h.positon),
             h.rotation, soundMarkerPrefab, anchorWrapperTransform);
         SoundMarker soundObj = pf.GetComponent <SoundMarker>();
         layoutManager.Bind(soundObj, h, !playbackIsStopped);
         soundMarkers.Add(pf);
     }
 }