From 08e29b2e701f9ed57d8b0a898c24ea00f038e01c Mon Sep 17 00:00:00 2001 From: orsolya-st Date: Sat, 6 Jun 2026 00:14:04 +0200 Subject: [PATCH] script editing first push helper variables (player) --- Game/Assets/Scripts/DropletMovement.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Game/Assets/Scripts/DropletMovement.cs b/Game/Assets/Scripts/DropletMovement.cs index 76b61a6..87f0946 100644 --- a/Game/Assets/Scripts/DropletMovement.cs +++ b/Game/Assets/Scripts/DropletMovement.cs @@ -2,11 +2,17 @@ using UnityEngine; public class DropletMovement : MonoBehaviour { - - public float moveSpeed = 5f; - private Rigidbody2D rb; + public float moveSpeed = 5f; private Vector2 movement; + private Animator playerAnim; //for animation + private float xInput; + + //helper variables + private bool isGrounded; + [SerializeField] private float dashSpeed; + [SerializeField] private float dashDuration; + private float dashTime; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start()