コード例 #1
0
    void OnGUI()
    {
        if (m_noteCreator == null)
        {
            m_noteCreator = new NotesCreator_Jann();
        }

        m_settingsBounds = new Rect(0, 0, position.width, 120);
        m_notesBounds    = new Rect(0, m_settingsBounds.height, position.width, position.height - m_settingsBounds.height);

        // Create settings menu
        GUILayout.BeginArea(m_settingsBounds);
        OnCreateSynthesizerSettings();
        GUILayout.EndArea();

        GUILayout.Space(100);

        // Generate notes based on settings menu
        if (m_channelsData.Length * m_channelsData[0].Count != m_length * m_channels)
        {
            SetupNotes();
        }

        // Create notes UI
        GUILayout.BeginArea(m_notesBounds);
        OnCreateNotesInterface();
        GUILayout.EndArea();
    }
コード例 #2
0
 void Awake()
 {
     m_noteCreator = new NotesCreator_Jann();
 }