void Start() { inputHandler = GetComponent <InputHandler>(); anim = GetComponentInChildren <Animator>(); playerLocomotion = GetComponent <PlayerLocomotion>(); interactableUI = FindObjectOfType <InteractUI>(); }
public void Initialize() { playerManager = GetComponentInParent <PlayerManager>(); anim = GetComponent <Animator>(); inputhandler = GetComponentInParent <InputHandler>(); playerLocomotion = GetComponentInParent <PlayerLocomotion>(); vertical = Animator.StringToHash("Vertical"); horizontal = Animator.StringToHash("Horizontal"); }