private void OnMouseDown() { Debug.Log("Click " + this); if (DragAndDropController.IsPresent()) { AttemptGrab(); } }
void Awake() { if (DragAndDropController.IsPresent()) { throw new NotSupportedException("Can not support multiple drag and drop controllers in one scene."); } else { DragAndDropController._dndCtrl = this; } }