// 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;
 }
Example #2
0
 private void OnEnable()
 {
     InputActionMap.Enable();
 }