public void DragCallback(DragCallback callback) { switch (callback.Type) { case DragCallbackType.Image: UploadImage(callback.Image); break; } }
public void SubscribeMouse(Collider collider, ClickCallback click, DragCallback drag, DropCallback drop) { Debug.Log(collider); _mouseCallbacks[collider] = new MouseCallbacks { Click = click, Drag = drag, Drop = drop, }; }
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; } }