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