baby is coming
This commit is contained in:
@@ -10,7 +10,7 @@ public class DropletMovement : MonoBehaviour
|
||||
private float xInput;
|
||||
|
||||
//helper variables
|
||||
private bool isGrounded;
|
||||
private bool isGrounded = true;
|
||||
[SerializeField] private float dashSpeed;
|
||||
[SerializeField] private float dashDuration;
|
||||
private float dashTime;
|
||||
@@ -24,6 +24,8 @@ public class DropletMovement : MonoBehaviour
|
||||
{
|
||||
movement.x = Input.GetAxisRaw("Horizontal");
|
||||
|
||||
|
||||
|
||||
if (isGrounded && Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
rb.linearVelocity = new Vector2(rb.linearVelocity.x, jumpingPower);
|
||||
|
||||
Reference in New Issue
Block a user