Draggable & Touch Objects
AchEngine provides components for dragging and tapping 2D world objects.
Draggable
Derive from Draggable to receive mouse/touch drag events. A missing Physics2DRaycaster is added to the main camera automatically.
originalPos stores the world position at the beginning of a drag.
TouchableObject
Override OnTouched() for a tap/click-only object.
ObjectTouchManager
Add one ObjectTouchManager to the scene. It detects left-clicks each frame, raycasts in 2D, and invokes OnTouched() on the hit TouchableObject.