Ejemplo n.º 1
0
 void Start()
 {
     inputHandler     = GetComponent <InputHandler>();
     anim             = GetComponentInChildren <Animator>();
     playerLocomotion = GetComponent <PlayerLocomotion>();
     interactableUI   = FindObjectOfType <InteractableUI>();
 }
Ejemplo n.º 2
0
 public void Initialize()
 {
     playerManager    = GetComponentInParent <PlayerManager>();
     anim             = GetComponent <Animator>();
     inputHandler     = GetComponentInParent <InputHandler>();
     playerLocomotion = GetComponentInParent <PlayerLocomotion>();
     vertical         = Animator.StringToHash("Vertical");
     horizontal       = Animator.StringToHash("Horizontal");
 }