This commit is contained in:
Malak
2026-06-06 18:23:27 +02:00
parent 4827de6748
commit 0e0abfc7d7
8 changed files with 531 additions and 1 deletions
+8 -1
View File
@@ -63,10 +63,17 @@ public class DropletMovement : MonoBehaviour
if (rb.linearVelocityY > 1)
{
animator.SetBool("Jumping", true);
} else if (rb.linearVelocityY < 1)
} else
{
animator.SetBool("Jumping", false);
}
if (rb.linearVelocityY < -0.5 && !isGrounded)
{
animator.SetBool("Falling", true);
} else
{
animator.SetBool("Falling", false);
}
//Walk animation
if (movement.x > 0) {