public void Initialize()
 {
     _playerManager    = GetComponentInParent <PlayerManager>();
     animator          = GetComponent <Animator>();
     _inputHandler     = GetComponentInParent <InputHandler>();
     _playerLocomotion = GetComponentInParent <PlayerLocomotion>();
     _vertical         = Animator.StringToHash("Vertical");
     _horizontal       = Animator.StringToHash("Horizontal");
 }
Example #2
0
 private void Start()
 {
     _inputHandler     = GetComponent <InputHandler>();
     _animator         = GetComponentInChildren <Animator>();
     _playerLocomotion = GetComponent <PlayerLocomotion>();
 }