falling
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user