using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public float speed; float hAxis; float vAxis; bool wDown; bool jDown; Vector3 moveVec; Rigidbody rigid; Animator anim; void Awake() { rigid = GetComponent(); anim = GetComponentInChildren(); } void Update() { GetInput(); Move(); Turn(); Jump(); } void GetInput() { hAxis = Input.Ge..