Пример #1
0
        public void OpenNotesheet()
        {
            int previousVelocity = GetCurrentVelocityIndex;

            SetVelocityIndex(stopVelocityIndex);

            string path = EditorUtility.OpenFilePanel("Save notesheet", "", NoteInfo.notesheetFileFormat);

            if (!string.IsNullOrEmpty(path))
            {
                var noteRange = NoteInfo.LoadNotesheet(path);
                //Debug.Log(noteRange.Length);
                AddNoteRange(noteRange);
            }

            SetVelocityIndex(previousVelocity);
        }