public void Initialize() { anim = GetComponent <Animator>(); playerManager = GetComponentInParent <PlayerManager>(); playerStats = GetComponentInParent <PlayerStats>(); inputHandler = GetComponentInParent <InputHandler>(); playerLocomotion = GetComponentInParent <PlayerLocomotion>(); vertical = Animator.StringToHash("Vertical"); horizontal = Animator.StringToHash("Horizontal"); }
private void Awake() { cameraHandler = FindObjectOfType <CameraHandler>(); backStabCollider = GetComponentInChildren <DeathblowsCollider>(); inputHandler = GetComponent <InputHandler>(); playerAnimatorManager = GetComponentInChildren <PlayerAnimatorManager>(); anim = GetComponentInChildren <Animator>(); playerLocomotion = GetComponent <PlayerLocomotion>(); playerStats = GetComponent <PlayerStats>(); interactableUI = FindObjectOfType <InteractableUI>(); //climbingLogic = GetComponent<ClimbingLogic>(); }