using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Numerics;
using Unity.Burst.Intrinsics;
using Unity.VisualScripting;
using UnityEditor.Callbacks;
using UnityEngine;
using Vector2 = UnityEngine.Vector2;
public class PlayerMovementScript : MonoBehaviour
{
public float Jump;
public Rigidbody2D rb;
private Collider2D _collider;
private bool _active = true;
// Start is called before the first frame update
void Start()
{
_collider = GetComponent<Collider2D>();
}
// Update is called once per frame
void Update()
{
if(Input.GetButtonDown("Jump"))
{
rb.velocity = new Vector2(rb.velocity.x,0);
rb.AddForce(new Vector2(0, Jump));
}
}
}