示例#1
0
 public void DragCallback(DragCallback callback)
 {
     switch (callback.Type)
     {
     case DragCallbackType.Image:
         UploadImage(callback.Image);
         break;
     }
 }
示例#2
0
 public void SubscribeMouse(Collider collider, ClickCallback click, DragCallback drag, DropCallback drop)
 {
     Debug.Log(collider);
     _mouseCallbacks[collider] = new MouseCallbacks
     {
         Click = click,
         Drag = drag,
         Drop = drop,
     };
 }
示例#3
0
        public void DragCallback(DragCallback callback)
        {
            switch (callback.Type)
            {
            case DragCallbackType.Image:
                UploadImage(callback.Image);
                break;

            case DragCallbackType.Animation:
                MessageBox.Show("Snaggy doesn't support gif animations.");
                break;
            }
        }