dropping animation

This commit is contained in:
Malak
2026-06-06 15:02:13 +02:00
parent 58f6b2202f
commit 3244419ed3
11 changed files with 792 additions and 2 deletions
+6
View File
@@ -97,6 +97,7 @@ public class DropletMovement : MonoBehaviour
if (!isGrounded){return;}
if (Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.S))
{
DropDown();
}
@@ -200,8 +201,12 @@ public class DropletMovement : MonoBehaviour
if (isGrounded && (Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.DownArrow)))
{
animator.SetBool("Dropping", true);
animator.SetBool("WalkingRight", false);
animator.SetBool("WalkingLeft", false);
StartCoroutine(DropRoutine());
}
}
private IEnumerator DropRoutine()
@@ -232,5 +237,6 @@ public class DropletMovement : MonoBehaviour
playerCollider.isTrigger = false;
isDropping = false;
isGrounded = false;
animator.SetBool("Dropping", false);
}
}