public void OnDrop(PointerEventData eventData) { if (storedTemplateObject == null && DragHandler.template != null) { //disable input on the template that was just dragged into this slot MatrixInputTemplate draggedTemplate = DragHandler.template.GetComponent <MatrixInputTemplate>(); draggedTemplate.SetAcceptingInput(false); DragHandler.template.transform.SetParent(transform); matrixInputManager.WorkspaceChanged(); } }
public void OnDrop(PointerEventData eventData) { if (acceptingInput && storedTemplateObject == null && DragHandler.template != null) { //find the template that is currently being dragged MatrixInputTemplate draggedTemplate = DragHandler.template.GetComponent <MatrixInputTemplate>(); draggedTemplate.SetAcceptingInput(true); DragHandler.template.transform.SetParent(transform); matrixInputManager.WorkspaceChanged(); } }