示例#1
0
 private void Start()
 {
     ElementSelector.Initialize(AddNewChord, AddNewMelody, AddNewLabel);
     chords   = new List <ChordDiagram>();
     melodies = new List <MelodyDiagram>();
     labels   = new List <LabelElement>();
     AddNewButton.onClick.AddListener(AddNewElement);
     SavePanel.Initialize(SaveCurrentChords);
     LoadPanel.Initialize(LoadElements);
     LoadButton.onClick.AddListener(ShowLoadPanel);
     SaveButton.onClick.AddListener(ShowSavePanel);
     ClearButton.onClick.AddListener(ClearAll);
 }