void OnMouseUp()
    {
        Snappable parent = GetComponentInParent <Snappable>();

        parent.DoSnap();
        // Update position after snap
        noteEventManager.TriggerNotePosition(transform.parent.parent.position);
    }
Beispiel #2
0
    void OnMouseUp()
    {
        end = new Vector3(transform.parent.parent.position.x, transform.parent.parent.position.y, transform.parent.parent.position.z);
        Snappable parent = GetComponentInParent <Snappable>();

        parent.DoSnap();
        // Update position after snap
        noteEventManager.TriggerNotePosition(end - start);
    }