public void OnBeginDrag(PointerEventData eventData) { if (eventData.button == PointerEventData.InputButton.Left) { currentDrag = DraggableChord.Instantiate(prefab, camera, Chord); } }
public void AttachChord(ChordName chord) { AttachChord(DraggableChord.Instantiate(chordPrefab, transform, camera, chord, this)); }