Skip to content

Commit bbf25b5

Browse files
committed
made platform touch slide more responsive
1 parent de4cee9 commit bbf25b5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Assets/1_Scripts/SlideMove.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void Update()
153153

154154
if (moving == false)
155155
{
156-
if (touchPosition.y > ((transform.position.y + halfPlatHeight) - (platDistance - (halfPlatHeight * 2))) && touchPosition.y < transform.position.y + halfPlatHeight)
156+
if (touchPosition.y > (transform.position.y - platDistance) + halfPlatHeight && touchPosition.y < transform.position.y + halfPlatHeight)
157157
{
158158
Move(touch, touchPosition);
159159
}

Assets/Sprites/New folder.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)