SetPivot() public method

Change the x and y coordinates of the object's origin in its own coordinate space.
public SetPivot ( float xv, float yv ) : void
xv float x value in ratio
yv float y value in ratio
return void
 public DragDropComManger(GObject agent, Func <GObject, bool> dropTarget)
 {
     mDropTargetFunc = dropTarget;
     mAgent          = agent;
     mAgent.visible  = false;
     mAgent.SetPivot(0.5f, 0.5f, true);
     ///mAgent.sortingOrder = int.MaxValue;
     mAgent.onDragEnd.Add(__dragEnd);
 }