Пример #1
0
        public static DraggableChordUI Instantiate(DraggableChordUI prefab,
                                                   Transform parent, ChordName chord)
        {
            DraggableChordUI instance = Instantiate(prefab, parent);

            instance.Chord = chord;
            instance.isProperlyInstantiated = true;
            return(instance);
        }
Пример #2
0
 public void AddChord(ChordName chord)
 {
     DraggableChordUI.Instantiate(chordPrefab, content, chord);
 }