This commit is contained in:
cemt1363
2026-06-06 02:46:25 +02:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -43,7 +43,8 @@ public class DropletMovement : MonoBehaviour
if (isGrounded &&
(Input.GetKeyDown(KeyCode.Space) ||
Input.GetKeyDown(KeyCode.UpArrow) ||
Input.GetKeyDown(KeyCode.W)))
Input.GetKeyDown(KeyCode.W))
&& !isDropping)
{
rb.linearVelocity = new Vector2(rb.linearVelocity.x, jumpingPower);
}
@@ -150,6 +151,5 @@ public class DropletMovement : MonoBehaviour
rb.gravityScale = 1;
playerCollider.isTrigger = false;
isDropping = false;
}
}