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