Пример #1
0
        /// <summary>
        /// Loads data for the instrument set.
        /// </summary>
        /// <param name="folderIN"></param>
        private IEnumerator LoadInstrumentSetData(string argDirectory)
        {
            InstrumentSetData setData = null;

            yield return(StartCoroutine(InstrumentSetData.LoadData(argDirectory, (x) => { setData = x; })));

            MusicGenerator.Instance.mInstrumentSet.LoadData(setData);
            yield return(null);
        }
Пример #2
0
        /// <summary>
        /// Loads data for the instrument set.
        /// </summary>
        /// <param name="folderIN"></param>
        private static void LoadInstrumentSetData(string folderIN)
        {
            InstrumentSetData setData = InstrumentSetData.LoadData(folderIN);

            MusicGenerator.Instance.mInstrumentSet.LoadData(setData);
        }