Got updated Scripts from main

This commit is contained in:
go38coz
2026-06-06 14:10:28 +02:00
parent 2acd616217
commit 9d1f04c496
+11
View File
@@ -192,6 +192,17 @@ 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()
{