Exemplo n.º 1
0
        static void Load()
        {
            var storages = new List <Storage>();

            EditorExtensions.LoadAssetsToList(storages, "t:storage");

            if (storages.Count > 0)
            {
                loadedStorage = storages[0];

                loadedSoundLibrary = loadedStorage.soundLibrary;
            }

            storageDatasFoundCount = storages.Count;
        }
Exemplo n.º 2
0
 ///<summary> Retrives AudioClip of sound by its index in sound pathes list.</summary>
 AudioClip GetSoundByIndex(int index, List <string> soundPathes, SoundLibrary soundLibrary)
 {
     return(soundLibrary.GetSoundByPath(soundPathes[index]));
 }