using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class FinalMovement : MonoBehaviour
{
private Rigidbody2D rb;
private Collider2D coll;
private Animator anim;
public float speed, jumpForce;
private float horizontalMove;
public Transform groundCheck;
public LayerMask ground;
public bool isGround, isJump, isDashing;
bool jumpPressed;
int jumpCount;
// Start is called before the first frame update
void Start()
{
rb = GetComponent<Rigidbody2D>();
coll = GetComponent<Collider2D>();
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update()
{
if (Input.GetButtonDown("Jump") &&am