protected override void OnDragDropRelease (GameObject surface)
{
if(surface.CompareTag("dragDropView"))
{
base.OnDragDropRelease (surface);
// Get the grid of the item dropped on
UIGrid surfaceGrid = surface.GetComponent<DragDropView>().Grid;
int draggedItemIndex = m_grid.GetIndex(transform);
int surfaceItemIndex = surfaceGrid.GetIndex(surface.transform);
m_grid.AddChild(surface.transform, draggedItemIndex);
surfaceGrid.AddChild(transform, surfaceItemIndex);
m_grid.RemoveChild(transform);
surfaceGrid.RemoveChild(surface.transform);
}
}