Esempio n. 1
0
 public void Initialize()
 {
     playerManager    = GetComponentInParent <PlayerManager>();
     anim             = GetComponent <Animator>();
     playerLocomotion = GetComponentInParent <PlayerLocomotion>();
     vertical         = Animator.StringToHash("Vertical");
     horizontal       = Animator.StringToHash("Horizontal");
 }
Esempio n. 2
0
 protected override void Start()
 {
     base.Start();
     inputHandler     = GetComponent <InputHandler>();
     playerLocomotion = GetComponent <PlayerLocomotion>();
     uiManager        = FindObjectOfType <UIManager>();
     playerInventory  = GetComponent <PlayerInventory>();
 }