using UnityEngine;
using System.Collections;
public class TestDragPanel : MonoBehaviour {
void Start() {
UIEventListener.Get(this.gameObject).onClick += onButtonClick;
}
void onButtonClick(GameObject button) {
GameObject gob = GameObject.Find("UIPanel (Clipped View)");
UIDraggablePanel draggablePanel = gob.GetComponent<UIDraggablePanel>();
draggablePanel.SetDragAmount(0.25f, 0f, true);
}
}