// Start is called before the first frame update void Awake() { playerInput = new DefaultInputActions(); playerInput.Enable(); playerInput.Player.SetCallbacks(this); this.mAnimator = GetComponent <Animator>(); this.controller = GetComponent <CharacterController>(); this.cameraTransform = Camera.main.transform; }
private void OnEnable() { InputActionMap.Enable(); }