Example #1
0
 private void ReloadLayouts()
 {
     data = LayoutManager.AllLayouts();
     data.Sort((a, b) => { return(string.Compare(a.layoutName, b.layoutName)); });
 }
 public void LayoutManagerHotspotListChanged(LayoutManager manager, Layout layout) {
     canvasControl.mainScreen.LayoutChanged(layout, manager.loadedAudioClipCount, manager.soundDictionary.Count);
 }
 public void LayoutManagerLoadedAudioClipsChanged(LayoutManager manager, int hotspotCount) {
     Debug.Log("MainController::LoadedAudioClipsChanged. loading: " + manager.loadingAudioClipCount 
             + " loaded: " + manager.loadedAudioClipCount 
             + ", AllClipCount: " + manager.soundDictionary.Count);
     canvasControl.mainScreen.UpdateMarkerCountLabel(hotspotCount, manager.loadedAudioClipCount, manager.soundDictionary.Count);
 }
        // ------------------------------------------------------
        #endregion
        #region ILayoutManagerDelegate
        // ------------------------------------------------------

        public void LayoutManagerLoadedNewLayout(LayoutManager manager, Layout newLayout) {
            // LoadSoundClipsExclusivelyForCurrentLayout(() => { });
            canvasControl.mainScreen.LayoutChanged(newLayout, manager.loadedAudioClipCount, manager.soundDictionary.Count);
        }