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; }
///<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])); }