Hi,
This is the script that i attach to the items:
public class CenterOnObject : MonoBehaviour
{
public UIDraggablePanel dragPanel;
void OnPress( bool state )
{
if( state==false ){
Vector3 newPos = dragPanel.transform.worldToLocalMatrix.MultiplyPoint3x4(transform.position);
SpringPanel.Begin(dragPanel.gameObject, -newPos, 8f);
}
}
}
but it's not work.
all i need is to constraint the draggable panel to some positions so it will show
the groups of levels in reasonable way.
help please.