public static DraggableChordUI Instantiate(DraggableChordUI prefab, Transform parent, ChordName chord) { DraggableChordUI instance = Instantiate(prefab, parent); instance.Chord = chord; instance.isProperlyInstantiated = true; return(instance); }
public void AddChord(ChordName chord) { DraggableChordUI.Instantiate(chordPrefab, content, chord); }