Merge remote-tracking branch 'origin/cems-awesome-branch' into damage-handling

This commit is contained in:
go38coz
2026-06-06 01:10:08 +02:00
2 changed files with 10 additions and 7 deletions
+7 -4
View File
@@ -9,10 +9,11 @@ public class DropletMovement : MonoBehaviour
private Animator playerAnim; //for animation
private float xInput;
public float moveSpeed = 5f;
public float jumpingPower = 5f;
private Vector2 movement;
//helper variables
private bool isGrounded = true;
[SerializeField] private float dashSpeed;
[SerializeField] private float dashDuration;
private float dashTime;
void Start()
{
@@ -23,6 +24,8 @@ public class DropletMovement : MonoBehaviour
{
movement.x = Input.GetAxisRaw("Horizontal");
if (isGrounded && Input.GetKeyDown(KeyCode.Space))
{
rb.linearVelocity = new Vector2(rb.linearVelocity.x, jumpingPower);