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