SwaperController
This Unity script allows a 2D GameObject to move smoothly in response to swipe gestures on mobile devices. The object moves by a fixed distance (e.g. 0.5 units) in the direction of the swipe (up, down, left, right) using Vector3.Lerp for smooth transitions. Ideal for grid-based or gesture-controlled movement in mobile games.
登录后发表评论