From 9d1f04c496bc59da905f19b896351d5fa9220a33 Mon Sep 17 00:00:00 2001 From: go38coz Date: Sat, 6 Jun 2026 14:10:28 +0200 Subject: [PATCH] Got updated Scripts from main --- Game/Assets/Scripts/DropletMovement.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Game/Assets/Scripts/DropletMovement.cs b/Game/Assets/Scripts/DropletMovement.cs index 9326e5b..11baa7b 100644 --- a/Game/Assets/Scripts/DropletMovement.cs +++ b/Game/Assets/Scripts/DropletMovement.cs @@ -192,7 +192,18 @@ public class DropletMovement : MonoBehaviour isGrounded = false; } - + private void DropDown() + { + //when "s" or "down key" is pressed turn of/disable collider; + //move object slowly down (1 seconds, move down the height of the collision box) + //after that enable collider again + + if (isGrounded && (Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.DownArrow))) + { + StartCoroutine(DropRoutine()); + } + } + private IEnumerator DropRoutine() { Collider2D playerCollider = GetComponent();