Ejemplo n.º 1
0
        /// <summary>
        /// Loads data for the Music Generator.
        /// </summary>
        /// <param name="folderIN"></param>
        private IEnumerator LoadGeneratorData(string argDirectory)
        {
            MusicGeneratorData data = null;

            yield return(StartCoroutine(MusicGeneratorData.LoadData(argDirectory, (x) => { data = x; })));

            MusicGenerator.Instance.LoadGeneratorSave(data);
            yield return(null);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Loads data for the Music Generator.
        /// </summary>
        /// <param name="folderIN"></param>
        private static void LoadGeneratorData(string folderIN)
        {
            MusicGeneratorData data = MusicGeneratorData.LoadData(folderIN);

            if (data == null)
            {
                throw new ArgumentNullException("Generator configuration does not exist at " + folderIN);
            }
            MusicGenerator.Instance.LoadGeneratorSave(data);
        }