예제 #1
0
    public void ClickOnBackground(BaseEventData data)
    {
        NoteObject note = GvrPointerInputModule.Pointer.PointerTransform.GetComponentInChildren <NoteObject>();

        note.gameObject.layer = LayerMask.NameToLayer("Default");
        note.TryRelease(null);
        if (note)
        {
            note.transform.SetParent(null, true);
        }
        else
        {
            return;
        }
    }