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