Player.cs
using UnityEngine; public class Player : MonoBehaviour { [SerializeField] Vector2 jumpVelocity = Vector2.up; void Update() { if (Input.GetButtonDown("Fire1")) { } } }
Quizzes
using UnityEngine; public class Player : MonoBehaviour { [SerializeField] Vector2 jumpVelocity = Vector2.up; void Update() { if (Input.GetButtonDown("Fire1")) { } } }