current correct code inshallah
This commit is contained in:
@@ -4,6 +4,7 @@ public class DropletMovement : MonoBehaviour
|
|||||||
{
|
{
|
||||||
private Rigidbody2D rb;
|
private Rigidbody2D rb;
|
||||||
public float moveSpeed = 5f;
|
public float moveSpeed = 5f;
|
||||||
|
public float jumpingPower = 5f;
|
||||||
private Vector2 movement;
|
private Vector2 movement;
|
||||||
private Animator playerAnim; //for animation
|
private Animator playerAnim; //for animation
|
||||||
private float xInput;
|
private float xInput;
|
||||||
@@ -14,15 +15,6 @@ public class DropletMovement : MonoBehaviour
|
|||||||
[SerializeField] private float dashDuration;
|
[SerializeField] private float dashDuration;
|
||||||
private float dashTime;
|
private float dashTime;
|
||||||
|
|
||||||
private Animator playerAnim;
|
|
||||||
private float xInput;
|
|
||||||
|
|
||||||
private bool isGrounded = true;
|
|
||||||
|
|
||||||
[SerializeField] private float dashSpeed;
|
|
||||||
[SerializeField] private float dashDuration;
|
|
||||||
private float dashTime;
|
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
rb = GetComponent<Rigidbody2D>();
|
rb = GetComponent<Rigidbody2D>();
|
||||||
|
|||||||
Reference in New Issue
Block a user